{% macro date_status(title, tasks, count, paginator, status, isSingleStatus, person, user) %} {% if tasks|length > 0 %}
{{ 'Title'|trans }} | {{ 'Task type'|trans }} | {% if person is null %}{{ 'Person'|trans }} | {% endif %}{{ 'Task status'|trans }} | {{ 'Dates'|trans }} | |
---|---|---|---|---|---|
{{ task.title }} | {{ task.type }} | {% if person is null %}{{ task.person}} | {% endif %}{% for place in workflow_marked_places(task) %} {{ place|trans }} {% endfor %} |
{% if task.startDate is null and task.warningDate is null and task.endDate is null %}
{{'No dates specified'|trans}}
{% else %}
|
|
{{ "There is no tasks."|trans }}
{% if person is not null %} {{ 'Add a new task' | trans }} {% endif %} {% else %} {% if single_task_ended_tasks is defined %} {{ helper.date_status('Tasks with expired deadline', single_task_ended_tasks, single_task_ended_count, single_task_ended_paginator, 'ended', isSingleStatus, person) }} {% endif %} {% if single_task_warning_tasks is defined %} {{ helper.date_status('Tasks with warning deadline reached', single_task_warning_tasks, single_task_warning_count, single_task_warning_paginator, 'warning', isSingleStatus, person) }} {% endif %} {% if single_task_current_tasks is defined %} {{ helper.date_status('Current tasks', single_task_current_tasks, single_task_current_count, single_task_current_paginator, 'current', isSingleStatus, person) }} {% endif %} {% if single_task_not_started_tasks is defined %} {{ helper.date_status('Tasks not started', single_task_not_started_tasks, single_task_not_started_count, single_task_not_started_paginator, 'not_started', isSingleStatus, person) }} {% endif %} {% if single_task_closed_tasks is defined %} {{ helper.date_status('Closed', single_task_closed_tasks, single_task_closed_count, single_task_closed_paginator, 'closed', isSingleStatus, person) }} {% endif %} {% if isSingleStatus == false %}