- 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">
|
<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>
|
<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_date_debut'] == entry['bf_date_fin'] %}
|
||||||
{% if entry['bf_commentaire']|default %}
|
<h5>{{ entry['bf_date_debut']|date("m/d/Y") }}</h5>
|
||||||
<p>{{ entry['bf_commentaire'] }}</p>
|
|
||||||
{% else %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
<div>
|
||||||
|
{% if entry['bf_commentaire']|default %}
|
||||||
|
{{ entry['bf_commentaire'] }}
|
||||||
|
{% else %}
|
||||||
|
Aucune information
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue