diff --git a/templates/eleve_absences.twig b/templates/eleve_absences.twig index 5ae3dde..da8c85f 100644 --- a/templates/eleve_absences.twig +++ b/templates/eleve_absences.twig @@ -1,8 +1,14 @@
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %} + {% set justifie = entry['bf_commentaire']|default %}
+ {% if justifie == false %} + + {% else %} + + {% endif %} {% if entry['bf_date_debut'] == entry['bf_date_fin'] %} {{ entry['bf_date_debut']|date("m/d/Y") }} {% else %} @@ -14,10 +20,10 @@
- {% if entry['bf_commentaire']|default %} - {{ entry['bf_commentaire'] }} + {% if justifie %} + Motif : {{ entry['bf_commentaire'] }} {% else %} - Aucune information + Absence non justifié {% endif %}