|
|
|
@ -14,17 +14,21 @@
|
|
|
|
|
<h1 class="d-flex justify-content-center entete">Vue des articles</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<form class="margOp" method="POST" action="changeNbArticle">
|
|
|
|
|
<input name="nbArticle" type="number" min="0">
|
|
|
|
|
<input name="nbArticleAdmin" type="number" min="0">
|
|
|
|
|
<button type="submit">Change number of articles</button>
|
|
|
|
|
</form>
|
|
|
|
|
{% for article in dVue.data %}
|
|
|
|
|
{% if dVue.data is defined %}
|
|
|
|
|
{% for article in dVue.data %}
|
|
|
|
|
<p class="caseInfo">
|
|
|
|
|
{{article.dateStr()}}<br>
|
|
|
|
|
<img class="imgArticle" src="{{ article.getMediaContent }}"/><br>
|
|
|
|
|
<a class="modal-content enTitre" href="{{ article.getLink() }}"target="_blank">{{ article.getTitle() }}</a>
|
|
|
|
|
{{ article.getDescription() }}
|
|
|
|
|
</p>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
<p class="d-flex justify-content-center enTitre">Pas d'articles à afficher</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<script>
|
|
|
|
|
// Actualiser la page toutes les 5 secondes
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|