{% extends 'base.html.twig' %} {% block title %} {% trans %}COSAP - Salles{% 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/salle/action.html.twig') }}
{% endif %}
{% trans %}Liste des Salles{% endtrans %} {{ salles.getTotalItemCount }}
{% if app.user and is_granted('ROLE_AJOUTER_SALLE') %} {% trans %}nouvel enregistrement{% endtrans %} {% endif %}
{% if not salles|length %} {% else %}
{% if app.user and (is_granted('ROLE_MODIFIER_SALLE') or is_granted('ROLE_SUPPRIMER_SALLE')) %} {% endif %} {% for salle in salles %} {% if app.user and (is_granted('ROLE_MODIFIER_SALLE') or is_granted('ROLE_SUPPRIMER_SALLE')) %} {% endif %} {% endfor %}
{% trans %}Nom de salle{% endtrans %} {% trans %}Étage{% endtrans %}{% trans %}Actions{% endtrans %}
{{ salle.label }} {{ salle.etage }} {% if app.user and is_granted('ROLE_MODIFIER_SALLE') %} {% endif %} {% if app.user and is_granted('ROLE_SUPPRIMER_SALLE') %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% include('Administration/salle/ajax/delete.html.twig') %} {% endblock %}