[Absences] Visualisé les absences justifiés ou non
This commit is contained in:
parent
a279834374
commit
4a5ad7b40a
1 changed files with 9 additions and 3 deletions
|
@ -1,8 +1,14 @@
|
|||
<div class="panel-body">
|
||||
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
||||
{% set justifie = entry['bf_commentaire']|default %}
|
||||
<div>
|
||||
<div>
|
||||
<h5>
|
||||
{% if justifie == false %}
|
||||
<i class="fa fa-exclamation" style="color:red" ></i>
|
||||
{% else %}
|
||||
<i class="fa fa-check" style="color:green" ></i>
|
||||
{% endif %}
|
||||
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||
{{ entry['bf_date_debut']|date("m/d/Y") }}
|
||||
{% else %}
|
||||
|
@ -14,10 +20,10 @@
|
|||
</h5>
|
||||
</div>
|
||||
<div>
|
||||
{% if entry['bf_commentaire']|default %}
|
||||
{{ entry['bf_commentaire'] }}
|
||||
{% if justifie %}
|
||||
Motif : {{ entry['bf_commentaire'] }}
|
||||
{% else %}
|
||||
Aucune information
|
||||
<span>Absence non justifié</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue