[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">
|
<div class="panel-body">
|
||||||
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
||||||
|
{% set justifie = entry['bf_commentaire']|default %}
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h5>
|
<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'] %}
|
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||||
{{ entry['bf_date_debut']|date("m/d/Y") }}
|
{{ entry['bf_date_debut']|date("m/d/Y") }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -14,10 +20,10 @@
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{% if entry['bf_commentaire']|default %}
|
{% if justifie %}
|
||||||
{{ entry['bf_commentaire'] }}
|
Motif : {{ entry['bf_commentaire'] }}
|
||||||
{% else %}
|
{% else %}
|
||||||
Aucune information
|
<span>Absence non justifié</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue