{% extends "base.html" %} {% block title %}{{data.code}} - {{data.nom}}{{data.titre}}{% endblock %} {% block content %} {% include "navigation.html" %} {% for categorie, valeur in data.items() %} {% endfor %}
{% if rename and rename[categorie] %}{{rename[categorie]}}{% else %}{{categorie.capitalize()}}{% endif %} {#- Gestion des tableaux #} {% if categorie == "motscles" -%}
{% for mot in valeur %}{{mot}}{% endfor %}
{#- Gestion des saes #} {% elif categorie == "sae" or categorie == "ressources" -%}
{% for val in valeur %}{{val}}{% endfor %}
{#- Gestion des ACS #} {% elif categorie == "acs" -%}
{% for rt,acs in valeur.items() %}{% for ac in acs %}{{ac}}{% endfor %}{% endfor %}
{#- Gestion des coeffs #} {% elif categorie == "coeffs" -%}
{% for rt, coeff in valeur.items() %}{{rt}} : {{coeff}}{% endfor %}
{#- Gestion des exemples #} {% elif categorie == "exemples" -%} {% for exemple in valeur %}Exemple{{loop.index}}{% if not loop.last %} - {% endif %}{% endfor %} {#- Gestion des prerequis #} {% elif categorie == "prerequis" -%} {% if valeur != "Aucun" %}
{% for rt in valeur %}{{rt}}{% endfor %}
{%- else %}{{valeur}}{% endif %} {#- Gestion des autres catégories #} {% else -%}
{{valeur}}
{%- endif -%}
{% include "navigation.html" %} {% endblock %}