[Absences] Rajout de la possibilité d'editer une absence.
This commit is contained in:
parent
202ce66ed6
commit
8279969780
1 changed files with 12 additions and 5 deletions
|
@ -1,11 +1,18 @@
|
||||||
<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 %}
|
||||||
<div>
|
<div>
|
||||||
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
<div>
|
||||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y") }}</h5>
|
<h5>
|
||||||
{% else %}
|
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("m/d/Y H:i") }}</h5>
|
{{ entry['bf_date_debut']|date("m/d/Y") }}
|
||||||
{% endif %}
|
{% else %}
|
||||||
|
{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("m/d/Y H:i") }}
|
||||||
|
{% 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>
|
||||||
<div>
|
<div>
|
||||||
{% if entry['bf_commentaire']|default %}
|
{% if entry['bf_commentaire']|default %}
|
||||||
{{ entry['bf_commentaire'] }}
|
{{ entry['bf_commentaire'] }}
|
||||||
|
|
Loading…
Reference in a new issue