{% extends 'base.html.twig' %} {% block title %}Gestion des Tâches - Clinique Les Genêts{% endblock %} {% block page_title %}Gestion des Tâches{% endblock %} {% block stylesheets %} {% endblock %} {% block body %}

Liste des tâches

{{ tasks|length }} tâche{{ tasks|length > 1 ? 's' : '' }}
{% set activeTasks = tasks|filter(task => not task.isCompleted) %} {% if activeTasks is empty %}

Aucune tâche en cours

Toutes vos tâches sont terminées ou créez-en une nouvelle

{% else %}
{% for task in activeTasks %} {% endfor %}
Tâche Assigné à Catégorie Priorité Statut Échéance Actions

{{ task.title }} {% if task.isRecurring %} {% endif %}

{% if task.description %}

{{ task.description|length > 60 ? task.description|slice(0, 60) ~ '...' : task.description }}

{% endif %} {% if task.project %} {{ task.project.name }} {% endif %}
{{ task.assignedTo.firstName|slice(0,1) }}{{ task.assignedTo.lastName|slice(0,1) }}

{{ task.assignedTo.firstName }} {{ task.assignedTo.lastName }}

{{ task.assignedTo.specialty }}

{% if task.category %} {{ task.category.name }} {% else %} Non catégorisé {% endif %} {{ task.priorityLabel }} {{ task.statusLabel }} {% if task.dueDate %}
{{ task.dueDate|date('d/m/Y') }} {% if task.isOverdue %} {% endif %}
{% else %} Aucune {% endif %}
{% endif %}
{% endblock %}