ynh_extension_meeo/templates/eleve_notes.twig

41 lines
1.5 KiB
Twig
Raw Normal View History

2024-07-13 19:03:41 +00:00
<div id="accordion_{{ bulletin.getId() }}_matiere" class="panel-group">
2024-07-13 18:39:43 +00:00
{% for matiere in bulletin.getMatieres() %}
{% if matiere.isVisible() %}
2024-07-13 18:39:43 +00:00
<div class="panel panel-primary">
2024-08-06 06:33:22 +00:00
<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>
2024-08-06 06:34:41 +00:00
<div class="row">
2024-08-06 06:33:22 +00:00
<div class="col-sm-10"></div>
<div class="col-sm-2">
Moyenne : {{ matiere.getMoyenne() }}
2024-07-13 19:03:41 +00:00
</div>
2024-08-06 06:33:22 +00:00
</div>
</div>
2024-07-13 19:03:41 +00:00
<div id="{{ bulletin.getId() }}_{{ matiere.getId() }}" class="panel-collapse collapse in" style="padding:5px">
2024-07-13 18:39:43 +00:00
{% for note in matiere.getNotes() %}
2024-07-13 19:03:41 +00:00
<div class="row">
<div class="col-sm-1">
2024-07-13 18:39:43 +00:00
{% if note.getNote() >= 20 %}
<i class="fa fa-star" style="color:gold"></i>
{% elseif note.getNote() >= 15 %}
<i class="fa fa-heart" style="color:red"></i>
{% elseif note.getNote() >= 12 %}
<i class="fa fa-smile" style="color:green"></i>
{% elseif note.getNote() >= 9 %}
<i class="fa fa-thumbs-up" style="color:green"></i>
{% endif %}
2024-07-13 19:03:41 +00:00
</div>
<div class="col-sm-10">
{{ note.getIntitule() }}
</div>
<div class="col-sm-1">
{{ note.getNote() }}
</div>
2024-07-13 18:39:43 +00:00
</div>
{% endfor %}
2024-07-12 14:49:50 +00:00
</div>
2024-07-13 18:39:43 +00:00
</div>
{% endif %}
2024-07-12 14:49:50 +00:00
{% endfor %}
2024-08-06 06:33:22 +00:00
</div>