{% set nom = ligns.nom.value %} {% set exercice = ligns %} {% set visuel = ligns.visuel.value %} {% set statut = exercice._object.statut %} {% set classificationId = exercice._object.c0.id %} {% set id = exercice._object.id %} {% set tags = ligns.tags.value|split(',') %} {% set favori = exercice._object.isFavori %}
{# LIEN #} {# VISUEL #}
{% include("00_commons/bandeauExercice.html.twig") %} {# RUBBAN #} {% if statut == 0 %}
{% endif %} {% if favori == 1 %}
{% endif %}
{# TITRE #}
{{ nom }}
{# TOOGLE CONTROL #}
{% if exercice._object.seanceExercices is defined and exercice._object.seanceExercices != [] %} {% for seanceExercice in exercice._object.seanceExercices|sort((a, b) => b <=> a) %}
{{ seanceExercice }}
{% endfor %} {% else %} Aucune séance associée. {% endif %}