{{ title }}

{% if is_granted('ROLE_ADMIN') %}{% endif %} {% for document in documents %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% endfor %}
Nom Date Catégorie
{{ document.nom }} {{ document.date |date('d/m/Y') }} {% set cat_readable = {'cr': "Compte-Rendu", 'manuel': 'Manuels', 'divers': 'Documents divers', 'formation': 'Formations' } %} {% if is_granted('ROLE_DOC_ADMIN') %} {% else %} {{ cat_readable[document.categorie] }} {% endif %}