ynh_extension_meeo/templates/edu_absences.twig
2024-08-06 08:49:52 +02:00

16 lines
688 B
Twig

{% if groups|default %}
<div id="accordion" class="panel-group" role="tablist" aria-multiselectable="true">
{% for identifier, group in groups|sort %}
<div class="panel panel-default">
<div id="head_{{ identifier }}" class="panel-heading collapsed" data-parent="#accordion" data-target="#{{ identifier }}" data-toggle="collapse" aria-expanded="false">
<h4 class="panel-title">{{ group['nom'] }}</h4>
</div>
<div id="{{ identifier }}" class="panel-collapse collapse in" aria-expanded="false">
{% include '@meeo/eleve_absences.twig' with { 'entries' : group['entries'] } %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<div>Aucune absences</div>
{% endif %}