{# templates/admin/consent/index.html.twig #} {% extends 'admin/base_admin.html.twig' %} {% block content %}
{# ── En-tête ─────────────────────────────────────────────────────────── #}

🔏 Consentements RGPD

Base légale Art. 6.1.a — T005 Newsletter · T007 Push VAPID
{{ total }} enregistrement{{ total > 1 ? 's' : '' }}
{# ── Stats ───────────────────────────────────────────────────────────── #}
{% for stat in stats %}
{{ stat.total }}
{{ stat.purpose == 'newsletter' ? '📧 Newsletter' : '🔔 Push VAPID' }}
{{ stat.action == 'grant' ? 'Actifs' : 'Révoqués' }}
{% endfor %}
{# ── Filtres ─────────────────────────────────────────────────────────── #}
Réinitialiser
{# ── Table ───────────────────────────────────────────────────────────── #}
{% for record in records %} {% else %} {% endfor %}
# Date Type Action Utilisateur IP anonymisée Source Version notice
{{ record.id }} {{ record.consentedAt|date('d/m/Y H:i:s') }} {% if record.purpose == 'newsletter' %} 📧 Newsletter {% else %} 🔔 Push VAPID {% endif %} {% if record.action == 'grant' %} ✅ Grant {% else %} ❌ Revoke {% endif %} {% if record.user %} {{ record.user.email }} {% else %} Anonyme {% endif %} {{ record.ipAnonymized ?? '—' }} {{ record.source ?? '—' }} {{ record.noticeVersion ?? '—' }} Détail
Aucun enregistrement trouvé.
{# ── Pagination ──────────────────────────────────────────────────────── #} {% if pages > 1 %} {% endif %} {# ── Note RGPD ───────────────────────────────────────────────────────── #}
🛡️ Note RGPD : Ces enregistrements constituent la preuve d'archivage des consentements (Art. 6.1.a). Durée de conservation : 3 ans après la fin de la relation (Art. 2224 CC). Purge automatique via php bin/console app:consent:purge.
{% endblock %}