{# Shared task list section used by both views/sprints/show.twig and views/sprints/present.twig. The owning template provides: sprint, currentUser, sprintWorkers, tasks, taskGrid, statusGrid, ownerChoices, taskStatusEnabled. #} {% set TaskAssignment_STATUSES = constant('App\\Domain\\TaskAssignment::STATUSES') %} {% set STATUS_ZUGEWIESEN = constant('App\\Domain\\TaskAssignment::STATUS_ZUGEWIESEN') %}

Tasks

{% if taskStatusEnabled %}
{% endif %}
{% if currentUser.isAdmin %} {% endif %}
{% for sw in sprintWorkers %} {% endfor %} {% if tasks is empty %} {% else %} {% for t in tasks %} {% set assign = taskGrid[t.id]|default({}) %} {% set tot = 0 %} {% for v in assign %}{% set tot = tot + v %}{% endfor %} {% for sw in sprintWorkers %} {% set d = assign[sw.id]|default(0.0) %} {% set st = statusGrid[t.id][sw.id]|default(STATUS_ZUGEWIESEN) %} {% set tdExtraClass = taskStatusEnabled ? ' assign-status-' ~ st : '' %} {% endfor %} {% endfor %} {% endif %}
Task Owner Prio Tot {{ sw.workerName }}
No tasks yet. {% if currentUser.isAdmin %} Click + Add task to start. {% endif %}
{% if currentUser.isAdmin %} {% endif %} {% if currentUser.isAdmin %} {% else %} {{ t.title }} {% endif %} {% if currentUser.isAdmin %} {% else %} {% set ownerName = '—' %} {% for ow in ownerChoices %} {% if ow.id == t.ownerWorkerId %}{% set ownerName = ow.name %}{% endif %} {% endfor %} {{ ownerName }} {% endif %} {% if currentUser.isAdmin %} {% else %} {{ t.priority }} {% endif %} {{ fmt_days(tot) }} {% if currentUser.isAdmin %} {% else %} {{ fmt_days(d) }} {% endif %} {% if taskStatusEnabled %} {% endif %} {% if currentUser.isAdmin %} {% endif %}