ynh_extension_meeo/templates/edu_notes.twig
2024-07-13 21:03:41 +02:00

18 lines
No EOL
826 B
Twig

<div id="accordion_bulletins" class="panel-group">
{% for bulletin in bulletins|sort %}
{% if bulletin.isVisible() %}
<div class="panel panel-default">
<button id="head_{{ bulletin.getId() }}" class="panel-heading collapsed" data-parent="#accordion_bulletins" data-target="#{{ bulletin.getId() }}" data-toggle="collapse">
<h4 class="panel-title">{{ bulletin.getNom() }}</h4>
<div class="row">
<div class="col-sm-9">{{ bulletin.getClass() }}</div>
<div class="col-sm-3">Moyenne Générale : {{ bulletin.getMoyenne() }}</div>
</div>
</button>
<div id="{{ bulletin.getId() }}" class="panel-collapse collapse" style="padding:5px">
{% include '@meeo/eleve_notes.twig' with { 'bulletin' : bulletin } %}
</div>
</div>
{% endif %}
{% endfor %}
</div>