+
{% include '@meeo/eleve_notes.twig' with { 'entries' : filteredEntries } %}
+ {% endif %}
{% endfor %}
\ No newline at end of file
diff --git a/templates/eleve_notes.twig b/templates/eleve_notes.twig
index 6b2c17a..fbc2834 100644
--- a/templates/eleve_notes.twig
+++ b/templates/eleve_notes.twig
@@ -1,16 +1,28 @@
{% for identifier, matiere in matieres['label'] %}
+ {% set filteredEntries = entries|filter(e => e['listeListeMatièrebf_matiere'] == identifier) %}
+ {% if filteredEntries|default %}
-
- {% for idEntry, entry in entries|filter(e => e['listeListeMatièrebf_matiere'] == identifier) -%}
-