2024-07-04 16:40:03 +00:00
|
|
|
<div class="panel-body">
|
2024-07-10 09:29:54 +00:00
|
|
|
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
2024-07-13 09:48:15 +00:00
|
|
|
{% set justifie = entry['bf_commentaire']|default %}
|
2024-07-04 16:40:03 +00:00
|
|
|
<div>
|
2024-07-10 10:32:03 +00:00
|
|
|
<div>
|
|
|
|
<h5>
|
2024-07-13 09:48:15 +00:00
|
|
|
{% if justifie == false %}
|
|
|
|
<i class="fa fa-exclamation" style="color:red" ></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-check" style="color:green" ></i>
|
|
|
|
{% endif %}
|
2024-07-10 10:32:03 +00:00
|
|
|
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
2024-07-21 10:12:10 +00:00
|
|
|
{{ entry['bf_date_debut']|date("m/d/Y") }}
|
|
|
|
{% elseif entry['bf_date_debut']|date("m/d/Y") == entry['bf_date_fin']|date("m/d/Y") %}
|
|
|
|
{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("H:i") }}
|
2024-07-10 10:32:03 +00:00
|
|
|
{% else %}
|
2024-07-21 10:12:10 +00:00
|
|
|
{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("m/d/Y H:i") }}
|
2024-07-10 10:32:03 +00:00
|
|
|
{% endif %}
|
|
|
|
<a class="btn btn-default btn-xs" href="{{ url({ tag: entry['id_fiche'], handler: 'edit' }) }}">
|
|
|
|
<i class="fa fa-pencil-alt"></i>
|
|
|
|
</a>
|
|
|
|
</h5>
|
|
|
|
</div>
|
2024-07-10 09:29:54 +00:00
|
|
|
<div>
|
2024-07-13 09:48:15 +00:00
|
|
|
{% if justifie %}
|
|
|
|
Motif : {{ entry['bf_commentaire'] }}
|
2024-07-09 15:31:48 +00:00
|
|
|
{% else %}
|
2024-07-13 09:48:15 +00:00
|
|
|
<span>Absence non justifié</span>
|
2024-07-04 16:40:03 +00:00
|
|
|
{% endif %}
|
2024-07-10 09:29:54 +00:00
|
|
|
</div>
|
2024-07-04 16:40:03 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|