{% extends ('base.html.twig') %} {% block title %} COSAP - Projets {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{% if action == "add" or action == "edit" %}
{% if action == "add" %} Nouveaux {% elseif action == "edit" %} Modifier {% endif %} projet

{{ include('Actions/Projets/action.html.twig') }}
{% endif %}
Recherche avancée

{% trans %}Liste des projets{% endtrans %} {{ Projets.getTotalItemCount }}
{% if app.user and is_granted('ROLE_AJOUTER_PROJET') %} {% trans %}nouvel enregistrement{% endtrans %} {% endif %}
{% if not Projets|length %} {% else %}
{% for projet in Projets %} {% endfor %}
Intitulé Type Responsable technique Responsable commercial Actions
{{ projet.intitule }} {{ constant('App\\Entity\\Projet::TYPE')[constant('App\\Entity\\Projet::'~projet.type)] }} {{ projet.responsableTechnique }} {{ projet.responsableCommercial }} {% if app.user and is_granted('ROLE_MODIFIER_PROJETS') %} {% endif %} {% if app.user and is_granted('ROLE_AFFICHER_PROJETS') %} {% endif %} {% if app.user and is_granted('ROLE_AJOUTER_PIECESJOINTES_PROJET') %} {% endif %} {% if app.user and is_granted('ROLE_SUPPRIMER_PROJETS') %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% include('Actions/Projets/ajax/delete.html.twig') %} {% include('Actions/Projets/ajax/modules.html.twig') %} {% include('Actions/Projets/ajax/pieces_jointes.html.twig') %} {% endblock %}