{% set rubriques = constant('App\\Security\\PermissionCatalogue::RUBRIQUES') %} {% set actions = constant('App\\Security\\PermissionCatalogue::ACTIONS') %}
| Rubrique | {% for libelle in actions %}{{ libelle }} | {% endfor %}
|---|---|
| {{ definition.libelle }} | {% for action, libelle in actions %}{{ action in definition.actions ? ((rubrique ~ '.' ~ action) in field.value ? 'Oui' : 'Non') : '—' }} | {% endfor %}