{% extends 'base.html.twig' %} {% block title %}{{ parcours.nom }}{% endblock %} {% block additional_footer_scripts %} {% endblock %} {% block body %}
{# Fil d'Ariane #} {# En-tête de page avec actions #}

{{ parcours.nom }}

{{ parcours.isOnline ? 'En ligne' : 'Hors ligne' }}
{% if parcours.logo %}
{% else %}
{% endif %}
{{ parcours.description }}
Modifier {{ include('admin/parcours/_delete_form.html.twig') }}
{# Section des rubriques avec accordéon #}

Rubriques du parcours

{% for rubrique in rubriques %}

{{ rubrique.description }}
Modifier {% if rubrique.type.value == constant('App\\Enum\\TypeRubrique::PRATIQUES').value %} Ajouter une pratique {% endif %} {% if rubrique.type.value == constant('App\\Enum\\TypeRubrique::ETAPES').value %} Ajouter une étape {% endif %}
{# PRATIQUES #} {% if rubrique.pratiques|length > 0 %}
Pratiques
{{ rubrique.pratiques|length }}
{% for pratique in rubrique.pratiques %}
{{ pratique.titre }}

{{ pratique.description }}

{# FICHES NIVEAU 2 (liées à la pratique) #} {% if pratique.ficheOutilNiv2s|length > 0 %} {% endif %} {# {% if pratique.ficheOutilNiv2s|length > 0 %} #} {# FICHES OUTIL associées directement à la pratique #} {% if pratique.fichesOutil|length > 0 %} {% endif %} {# {% if pratique.fichesOutil|length > 0 %} #}
{% endfor %} {# {% for pratique in rubrique.pratiques %}#}
{% endif %} {# {% if rubrique.pratiques|length > 0 %} #}
{% if rubrique.etapes|length > 0 %}
Étapes
{{ rubrique.etapes|length }}
{# ETAPES #} {% for etape in rubrique.etapes %}
{{ etape.titre }}
{{ include('admin/etape/_delete_form.html.twig') }}

{{ etape.description }}

{# FICHES NIVEAU 2 (liées à l'étape) #} {% if etape.ficheOutilNiv2s|length > 0 %} {% endif %} {# {% if etape.ficheOutilNiv2s|length > 0 %} #} {# FICHES OUTIL associées directement à l'étape #} {% if etape.fichesOutil|length > 0 %} {% endif %} {# {% if etape.fichesOutil|length > 0 %} #}
{% endfor %} {# for etape in rubrique.etapes #}
{% endif %} {# {% if rubrique.etapes|length > 0 %} #}
{# l.130#}
{% else %} {# {% for rubrique in rubriques %} #}
Aucune rubrique pour ce parcours.
{% endfor %}
{# Modale générique de suppression de pratique #} {% endblock %}