{% extends ('base.html.twig') %} {% block title %} {% trans %}COSAP - Responsables{% endtrans %} {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{% if action == "add" or action == "edit" %}
{% if action == "add" %} {% trans %}Nouvel Enregistrement{% endtrans %} {% else %} {% trans %}Modifier Enregistrement{% endtrans %} {% endif %}

{{ include('Hierarchie/responsable/action.html.twig') }}
{% endif %}
{% if not show_details %} {% else %} {{ selected_groupe.name }} {{ users.getTotalItemCount }} {% if app.user and is_granted('ROLE_AJOUTER_RESPONSABLE') and not is_exist_responsable|length %} {% trans %}nouvel responsable{% endtrans %} {% endif %}
{% if not users|length %} {% else %}
{% if app.user and (is_granted('ROLE_MODIFIER_RESPONSABLE') or is_granted('ROLE_SUPPRIMER_RESPONSABLE') or is_granted('ROLE_ACTIVER_DESACTIVER_RESPONSABLE')) %} {% endif %} {% for user in users %} {% if app.user and (is_granted('ROLE_MODIFIER_RESPONSABLE') or is_granted('ROLE_SUPPRIMER_RESPONSABLE') or is_granted('ROLE_ACTIVER_DESACTIVER_RESPONSABLE')) %} {% endif %} {% endfor %}
{% trans %}Nom Complet{% endtrans %}
{% trans %}Date Début{% endtrans %}
{% trans %}Date Fin{% endtrans %}
{% trans %}Actions{% endtrans %}
{% if user.dateDebut is not null %}{{ user.dateDebut |date ('Y-m-d H:i') }}{% endif %}
{% if user.dateFin is not null %}{{ user.dateFin |date ('Y-m-d H:i') }}{% endif %}
{% if user.dateDebut is not null and user.dateFin is not null %} {% trans %}Non Autorisée{% endtrans %} {% else %} {% if app.user and is_granted('ROLE_MODIFIER_RESPONSABLE') and user.isActif == 0 %} {% endif %} {% if app.user and is_granted('ROLE_ACTIVER_DESACTIVER_RESPONSABLE') %} {% endif %} {% if app.user and is_granted('ROLE_SUPPRIMER_RESPONSABLE') and user.isActif == 0 %} {% endif %} {% endif %}
{% endif %} {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% include('Hierarchie/responsable/ajax/delete.html.twig') %} {% endblock %}