ynh_extension_meeo/templates/edu_absences.twig

16 lines
693 B
Twig
Raw Normal View History

2024-07-04 18:27:25 +00:00
{% if groups|default %}
2024-07-04 07:01:12 +00:00
<div id="accordion" class="panel-group" role="tablist" aria-multiselectable="true">
2024-07-10 09:44:03 +00:00
{% for identifier, group in groups|sort %}
2024-07-04 09:34:16 +00:00
<div class="panel panel-default">
2024-07-04 07:01:12 +00:00
<button id="head_{{ identifier }}" class="panel-heading collapsed" data-parent="#accordion" data-target="#{{ identifier }}" data-toggle="collapse" aria-expanded="false">
2024-07-04 07:27:29 +00:00
<h4 class="panel-title">{{ group['nom'] }}</h4>
2024-07-04 07:01:12 +00:00
</button>
2024-07-04 09:34:16 +00:00
<div id="{{ identifier }}" class="panel-collapse collapse in" aria-expanded="false">
{% include '@meeo/eleve_absences.twig' with { 'entries' : group['entries'] } %}
2024-07-04 07:01:12 +00:00
</div>
</div>
{% endfor %}
2024-07-04 18:27:25 +00:00
</div>
{% else %}
<div>Aucune absences</div>
2024-07-04 18:27:25 +00:00
{% endif %}