ynh_extension_meeo/templates/edu_absences.twig
mckmonster 9f269a1c52 [Absences] Display "Aucune Absence" quand on n'a pas d'absence
Rajout de variable de configuration
2024-07-04 21:27:28 +02:00

16 lines
No EOL
688 B
Twig

{% if groups|default %}
<div id="accordion" class="panel-group" role="tablist" aria-multiselectable="true">
{% for identifier, group in groups %}
<div class="panel panel-default">
<button 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>
</button>
<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 %}