{% set parametres_generaux = { 'candidats': { 'icon' : 'user-line', 'label' : 'Candidat', 'value' : candidats|length, 'accordion' : { 'title' : 'Liste des candidats', 'data' : candidats, } }, 'unites': { 'icon' : 'community-line', 'label' : 'Unité', 'value' : unites_count, 'list' : unites }, 'tranche': { 'icon' : 'time-line', 'label' : tranches_horaires > 1 ? 'Tranches horaires' : 'Tranche horaire', 'value' : tranches_horaires, 'list' : { 'Début': heure_ouverture|date('H:i'), 'Fin' : heure_fermeture|date('H:i') } }, 'centaines': { 'icon' : 'line-chart-fill', 'label' : 'Centaine', 'value' : centaines_count, 'list' : centaines }, 'animation': { 'icon' : 'pie-chart-line', 'label' : 'Animation', 'value' : animation_count, 'list' : animation }, 'plan' : { 'icon' : 'road-map-line', 'label' : 'Plan', 'value' : plan_count, 'list' : plan } } %} {% if workflow == 'Paramétrage' %}

Résumé du paramétrage

{% for type, param in parametres_generaux %}

{{ param.value }} {{ param.value > 1 ? param.label|plural('fr') : param.label }}

{% if param.value > 0 %} {% if type == 'candidats' %}
{{ param.accordion.title }}
    {% for item in param.accordion.data %} {% if type == 'candidats' %} {% set partiColor = item.couleur is defined and item.couleur ? item.couleur : '#ddd' %}
  • {{ item.candidat }} {% if item.parti %} ({{ item.parti }}) {% endif %}
  • {% endif %} {% endfor %}
{% elseif type == 'unites' %}
Liste des unités
    {% for item,value in param.list %}
  • {{ value > 1 ? item|plural('fr') : item }} : {{ value }}
  • {% endfor %}
{% elseif type == 'centaines' %}
Liste des centaines
    {% for item,value in param.list %}
  1. {{ value.centaine }}
  2. {% endfor %}
{% elseif type == 'animation' %}
Liste des animations
    {% for item,value in param.list %}
  1. {{ value.animation }}
  2. {% endfor %}
{% elseif type == 'plan' %}
Liste des plans
    {% for item,value in param.list %}
  1. {{ value.plan }}
  2. {% endfor %}
{% endif %} {% endif %}
{% endfor %}
{% endif %}