[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">
|
||||
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
||||
<div>
|
||||
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y") }}</h5>
|
||||
{% else %}
|
||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("m/d/Y H:i") }}</h5>
|
||||
{% endif %}
|
||||
<div>
|
||||
<h5>
|
||||
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||
{{ entry['bf_date_debut']|date("m/d/Y") }}
|
||||
{% 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>
|
||||
{% if entry['bf_commentaire']|default %}
|
||||
{{ entry['bf_commentaire'] }}
|
||||
|
|
Loading…
Reference in a new issue