ynh_extension_meeo/templates/eleve_notes.twig
2024-11-05 09:22:50 +01:00

51 lines
No EOL
2.3 KiB
Twig

<div class="panel panel-default">
<div 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.getClasse() }}</div>
<div class="col-sm-3">Moyenne Générale : {{ bulletin.getMoyenne() }}</div>
</div>
</div>
<div id="{{ bulletin.getId() }}" class="panel-collapse collapse {{ opened }}" style="padding:5px">
<div id="accordion_{{ bulletin.getId() }}_matiere" class="panel-group">
{% for matiere in bulletin.getMatieres() %}
{% if matiere.isVisible() %}
<div class="panel panel-primary">
<div id="head_{{ bulletin.getId() }}_{{ matiere.getId() }}" class="panel-heading collapsed" data-parent="#accordion_{{ bulletin.getId() }}_matiere" data-target="#{{ bulletin.getId() }}_{{ matiere.getId() }}" data-toggle="collapse">
<h4 class="panel-title">{{ matiere.getNom() }}</h4>
<div class="row">
<div class="col-sm-10"></div>
<div class="col-sm-2">
Moyenne : {{ matiere.getMoyenne() }} / 20
</div>
</div>
</div>
<div id="{{ bulletin.getId() }}_{{ matiere.getId() }}" class="panel-collapse collapse in" style="padding:5px">
{% for note in matiere.getNotes() %}
<div class="row">
<div class="col-sm-1">
{% if note.getNoteOn20() >= 20 %}
<i class="fa fa-star" style="color:gold"></i>
{% elseif note.getNoteOn20() >= 15 %}
<i class="fa fa-heart" style="color:red"></i>
{% elseif note.getNoteOn20() >= 12 %}
<i class="fa fa-smile" style="color:green"></i>
{% elseif note.getNoteOn20() >= 9 %}
<i class="fa fa-thumbs-up" style="color:green"></i>
{% endif %}
</div>
<div class="col-sm-10">
{{ note.getIntitule() }}
</div>
<div class="col-sm-1">
{{ note.getNote() }} / {{ note.getMax() }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>