{% extends 'base.html.twig' %} {% block title %}{{ site.name }}{% endblock %} {# minRows : nombre de lignes à atteindre, complété par des lignes vides. Les deux vues (actuels / futurs) ont ainsi exactement la même hauteur. #} {% macro perim_table(rows, total, minRows = 0) %} {% for p in rows %} {% for c in p.children|default([]) %} {% endfor %} {% endfor %} {% if minRows > rows|length %} {% for i in 1..(minRows - rows|length) %} {% endfor %} {% endif %}
Etablissement Répartition Effectif DSCO
{{ p.label }} {% if p.children|default([])|length %} ({{ p.children|length }} sous-étab.) {% endif %}
{{ p.effectif }} ({{ p.pct }} %) {{ p.dsco }}
▸ {{ c.label }} {{ c.effectif }}
Total ({{ rows|length }} Etablissements) {{ total }}
{% endmacro %} {% import _self as ui %} {% block body %}
{{ info.department ?: '—' }} Département
{{ info.city ?: '—' }} Ville
{{ info.effectifTotal }} Effectif total
{{ info.perimetresActuels|length }} Etablissements présents

Encadrement

Secrétaire de département (SDD)
{{ info.sdd ?: '—' }}
Référent du site
{{ info.referent }}

représentants du site

{% if porteurs is not empty %} {% else %}

Aucun représentant rattaché à ce site.

{% endif %}
{% set maxRows = max(info.perimetresActuels|length, info.perimetresRegain|length) %}

Répartition des effectifs

Répartition de l'effectif total sur les Etablissements présents sur ce site, avec leur DSCO.

{{ ui.perim_table(info.perimetresActuels, info.effectifTotal, maxRows) }}

Projection de l'effectif total sur les futurs Etablissements, avec leur DSCO. Réorganisation Regain

{{ ui.perim_table(info.perimetresRegain, info.effectifTotal, maxRows) }}
{% endblock %}