{% extends '@Projet/projet/layout.html.twig' %} {% block projet_title %}{{ task.titre }}{% endblock %} {% block projet_content %} {% set french_months = {1: 'janv.', 2: 'févr.', 3: 'mars', 4: 'avr.', 5: 'mai', 6: 'juin', 7: 'juil.', 8: 'août', 9: 'sept.', 10: 'oct.', 11: 'nov.', 12: 'déc.'} %} {% set completed = task.statut|lower starts with 'termin' %} {% set overdue = task.deadline and task.deadline < date() and not completed %}
{% include '@Projet/projet/tache/_project_hero.html.twig' %} Retour aux tâches du projet
#T-{{ '%03d'|format(task.id) }}{{ task.statut }}{{ task.priorite }}{{ task.type }}{% if overdue %}Deadline dépassée{% endif %}

{{ task.titre }}

{{ project.titre }} · {{ project.client ? project.client.nom : 'Sans client' }} · Créée le {{ task.createdAt|date('j') }} {{ french_months[task.createdAt|date('n')] }} {{ task.createdAt|date('Y') }}

Modifier {% if not completed %}
{% endif %} {% if app.user in task.assignedAt %}
Bloquer du temps
{% endif %}
{% include '@Projet/projet/_attachments.html.twig' with {work: task, kind: 'taches'} %}

Description

Éditer
{{ task.description ? task.description|nl2br : 'Aucune description renseignée.' }}

Commentaires

{{ task_comments|length }}
{% for comment in task_comments %}

{{ comment.user ? comment.user.prenom ~ ' ' ~ comment.user.nom : 'Utilisateur' }}{{ comment.createdAt|date('j') }} {{ french_months[comment.createdAt|date('n')] }} {{ comment.createdAt|date('Y') }} à {{ comment.createdAt|date('H:i') }}

{{ comment.contenu|nl2br }}
{% else %}

Aucun commentaire.

{% endfor %}
{% endblock %}