{% extends 'base.html.twig' %} {% block title %} {% trans %}COSAP - Fonctions{% endtrans %} {% endblock %} {% block body %} {{ parent() }} {% if action == "edit" or action == "add" %}
{% if action == "add" %} {% trans %}Nouvel{% endtrans %} {% else %} {% trans %}Modifier{% endtrans %} {% endif %} {% trans %}Enregistrement{% endtrans %}
{{ include('Administration/fonction/action.html.twig') }}
{% endif %}
{% trans %}Liste des Fonctions{% endtrans %} {{ fonctions.getTotalItemCount }}
{% if app.user and is_granted('ROLE_AJOUTER_FONCTION') %} {% trans %}nouvel enregistrement{% endtrans %} {% endif %}
{% if not fonctions|length %} {% else %}
{% if app.user and (is_granted('ROLE_MODIFIER_FONCTION') or is_granted('ROLE_SUPPRIMER_FONCTION')) %} {% endif %} {% for fonction in fonctions %} {% if app.user and (is_granted('ROLE_MODIFIER_FONCTION') or is_granted('ROLE_SUPPRIMER_FONCTION')) %} {% endif %} {% endfor %}
{% trans %}Nom de fonction{% endtrans %}{% trans %}Actions{% endtrans %}
{{ fonction.name }} {% if app.user and is_granted('ROLE_MODIFIER_FONCTION') %} {% endif %} {% if app.user and is_granted('ROLE_SUPPRIMER_FONCTION') %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% include('Administration/fonction/ajax/delete.html.twig') %} {% endblock %}