- Fix de l'affichage des absences
- Sort pour afficher les plus récentes au plus anciennes
This commit is contained in:
parent
a3a179827b
commit
61267ba243
1 changed files with 11 additions and 5 deletions
|
@ -1,12 +1,18 @@
|
|||
<div class="panel-body">
|
||||
{% for entry in entries %}
|
||||
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
||||
<div>
|
||||
<h5>{{ entry['bf_date_debut_evenement']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin_evenement']|date("m/d/Y H:i") }}</h5>
|
||||
{% if entry['bf_commentaire']|default %}
|
||||
<p>{{ entry['bf_commentaire'] }}</p>
|
||||
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y") }}</h5>
|
||||
{% else %}
|
||||
<p>Aucune information</p>
|
||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("m/d/Y H:i") }}</h5>
|
||||
{% endif %}
|
||||
<div>
|
||||
{% if entry['bf_commentaire']|default %}
|
||||
{{ entry['bf_commentaire'] }}
|
||||
{% else %}
|
||||
Aucune information
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue