{% extends 'base.html.twig' %} {% block title %}Revue du personnel{% endblock %} {% block body %} {# En-tête visible uniquement à l'impression / PDF #}
{% for r in rows %} {% else %} {% endfor %}
Représentant Rattachement Naissance Établissements couverts Rôle Accès Compétences
{{ (r.nom|first ~ (r.prenom ? r.prenom|first : ''))|upper }}
{{ r.nom|upper }} {{ r.prenom }}
{{ r.email ?: '—' }}
{% if r.entite %}
{{ r.entite }}
{% endif %}
{% if r.site %}
{{ r.site }}
{{ r.ville ?: '—' }}{% if r.departement %} · {{ r.departement }}{% endif %}
{% else %}—{% endif %}
{{ r.naissance ? r.naissance|date('d/m/Y') : '—' }} {% if r.etablissements is not empty %} {% for e in r.etablissements %}{{ e }}{% endfor %} {% else %}—{% endif %} {% for q in r.role %} {% set cls = q == 'SDD' ? 'tagb-sdd' : (q == 'DSCO' ? 'tagb-dsco' : 'tagb-mandat') %} {{ q }} {% endfor %} {% set acls = r.acces == 'Administrateur' ? 'tagb-admin' : (r.acces == 'Refusé' ? 'tagb-refuse' : 'tagb-standard') %} {{ r.acces }} {% if r.competences is not empty %} {% for c in r.competences %}{{ c.label }} · {{ c.level }}{% endfor %} {% else %}—{% endif %}
Aucun représentant.
{% endblock %}