Nom | Date | Catégorie | {% if is_granted('ROLE_ADMIN') %}{% endif %} |
---|---|---|---|
{{ 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 %} | {% if is_granted('ROLE_ADMIN') %}{% endif %} |