{% extends 'app/base.html.twig' %} {% block title %}Suivis individuels — retour d'assiettes{% endblock %} {% block body %}

Suivis individuels

Suivi médical du retour d'assiettes (dénutrition, appétit…)
Déchets {% if is_granted('ROLE_TENANT_GESTIONNAIRE') %} Nouveau suivi {% endif %}
{# ── Flash messages ────────────────────────────────────────────────────────── #} {% for type, messages in app.flashes(['success','error','warning','info']) %} {% for msg in messages %}
{{ msg }}
{% endfor %} {% endfor %} {# ── Suivis en cours ───────────────────────────────────────────────────────── #}
En cours
{{ actifs|length }}
{% if actifs is empty %}
Aucun suivi individuel actif {% if is_granted('ROLE_TENANT_GESTIONNAIRE') %} {% endif %}
{% else %}
{% for s in actifs %}
{{ s.nom_personne }}
{% if s.type_personne == 'eleve' %}🏫 Élève {% elseif s.type_personne == 'resident' %}🏠 Résident {% elseif s.type_personne == 'patient' %}🏥 Patient {% else %}👤 Autre{% endif %} {% if s.groupe_service %} {{ s.groupe_service }} {% endif %}
Actif
{% if s.motif %}

{{ s.motif|slice(0, 100) }}{% if s.motif|length > 100 %}…{% endif %}

{% endif %}
Depuis le {{ s.date_debut|date('d/m/Y') }}
{{ s.nb_releves }} relevé(s) {% if s.dernier_releve %} • Dernier : {{ s.dernier_releve|date('d/m/Y') }} {% endif %}
Voir la fiche
{% endfor %}
{% endif %} {# ── Suivis archivés ───────────────────────────────────────────────────────── #} {% if archives is not empty %}
Archivés
{{ archives|length }}
{% for s in archives %} {% endfor %}
Personne Type Groupe Période Relevés
{{ s.nom_personne }} {% if s.type_personne == 'eleve' %}Élève {% elseif s.type_personne == 'resident' %}Résident {% elseif s.type_personne == 'patient' %}Patient {% else %}Autre{% endif %} {{ s.groupe_service ?: '—' }} {{ s.date_debut|date('d/m/Y') }} → {{ s.date_fin ? s.date_fin|date('d/m/Y') : '?' }} {{ s.nb_releves }}
{% endif %} {% endblock %}