{% extends 'base.html.twig' %} {% block title %}{{ title }}{% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_row(form.label) }}
{{ form_row(form.parent) }}
{{ form_row(form.effectif) }}
{{ form_row(form.dscos) }}
{{ form_end(form) }}
{% set perim = form.vars.data %} {% if perim.id and perim.hasChildren %}

Sous-établissements ({{ perim.children|length }})

Effectif total (somme) : {{ perim.effectifTotal }}
{% for c in perim.children %} {% endfor %}
LibelléEffectifActions
▸ {{ c.label }} {{ c.effectif ?? 0 }} Modifier
{% elseif perim.id and perim.parent %}

Établissement secondaire de {{ perim.parent.label }}.

{% endif %} {% endblock %}