{% if not actions|length %}
Aucun enregistrement trouvé !
{% else %}
Titre
Projet
Créateur
Date création
Date fin prévue
Destinataire
Statut
Actions
{% for action in actions %}
{% if action.priorite %}
{% if action.titre!= null %} {{ action.titre }} {% else %} {{ action.intitule.label }} {% if action.projet is not null %}( {{action.projet.intitule}}{% if action.modules is not null %}: {{action.modules.label}}{% endif %} ){% endif %}{% endif %}
{% else %}
{% if action.titre!= null %} {{ action.titre }} {% else %} {{ action.intitule.label }} {% if action.projet is not null %}( {{action.projet.intitule}}{% if action.modules is not null %}: {{action.modules.label}}{% endif %} ){% endif %}{% endif %}
{% endif %}
{% if action.projet is not null %} {{action.projet.intitule}} {% else %} {% endif %}
{{ action.createur.lastName }} {{ action.createur.firstName }}
{{ action.dateCreation|date('d-m-Y H:i') }}
{{ action.dateLimiteFinAction|date('d-m-Y H:i') }}
{% if action.dateLimiteFinAction != null or action.delais != null %}
😞 Action en retard !
{% endif %}" data-trigger="hover" data-html="true">
{% endif %}
{{ action.destinataire.lastName }} {{ action.destinataire.firstName }}
{{ constant('App\\Entity\\Action::STATUT')[constant('App\\Entity\\Action::'~action.statut)] }}
{{ (action.actionHistoriques|length) - 1 }}
{% if action.createur.id == app.user.id and action.statut == "S01" %}
{% endif %} {% if action.destinataire.id == app.user.id and action.statut == "S01"%}
{% endif %} {% if action.createur.id == app.user.id or action.destinataire.id == app.user.id %}
{% endif %} {% if action.createur.id == app.user.id or action.destinataire.id == app.user.id or is_granted('ROLE_AJOUTER_COMMENTAIRE_ACTIONS') %}
{% endif %} {% if action.createur.id == app.user.id or action.destinataire.id == app.user.id or is_granted('ROLE_SUPPRIMER_ACTIONS') %}
{% endif %}
{% endfor %}
{{ knp_pagination_render(actions) }}
{% endif %}