+
+ {# Encabezado #}
+
+
+
+
+ {{ trans('project-tasks') }} — {{ trans('report') | capitalize }}
+
+
+
+
+ {# Totales y tiempo medio de resolución #}
+
+ {{ m.kpi(trans('total-tasks'), fsc.totals.total, 'fa-solid fa-list-check', 'primary') }}
+ {{ m.kpi(trans('open-tasks'), fsc.totals.opened, 'fa-solid fa-lock-open', 'warning') }}
+ {{ m.kpi(trans('tasks-created-last-month'), fsc.totals.last_month, 'fa-solid fa-calendar-days', 'info') }}
+ {{ m.kpi(trans('tasks-created-last-year'), fsc.totals.last_year, 'fa-solid fa-calendar', 'success') }}
+ {{ m.kpi(trans('average-resolution-time'), fsc.totals.media is null ? trans('no-data') : m.days(fsc.totals.media), 'fa-solid fa-stopwatch', 'secondary') }}
+
+
+ {# Creadas y completadas por mes y por año #}
+
+
+
+
+
+
+ {% if fsc.tasksByYear is empty %}
+
{{ trans('no-data') }}
+ {% else %}
+
+ {% endif %}
+
+
+
+
+
+ {# Por fase y por tipo de fase #}
+
+
+
+
+
+
+
+
+
+ | {{ trans('phase') }} |
+ {{ trans('tasks') }} |
+
+
+
+ {% for row in fsc.tasksByPhase %}
+
+ | {{ row.nombre }} |
+ {{ row.total }} |
+
+ {% else %}
+
+ | {{ trans('no-data') }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | {{ trans('type') }} |
+ {{ trans('tasks') }} |
+
+
+
+ {% for type, total in tasksByPhaseType %}
+
+ | {{ trans(type) }} |
+ {{ total }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+ {# Por usuario #}
+
+
+
+
+
+
+
+
+
+ | {{ trans('user') }} |
+ {{ trans('open-tasks') }} |
+ {{ trans('completed') }} |
+ {{ trans('canceled') }} |
+ {{ trans('average-resolution-time') }} |
+
+
+
+ {% for row in fsc.tasksByUser %}
+
+ |
+ {% if row.nick %}
+ {{ row.nick }}
+ {% else %}
+ {{ trans('without-assigned-user') }}
+ {% endif %}
+ |
+ {{ row.opened }} |
+ {{ row.completed }} |
+ {{ row.canceled }} |
+
+ {{ m.days(row.media) }}
+ |
+
+ {% else %}
+
+ | {{ trans('no-data') }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+ {# Proyectos con más tareas abiertas y tareas retrasadas #}
+
+
+
+
+
+
+
+
+
+ | {{ trans('project') }} |
+ {{ trans('open-tasks') }} |
+
+
+
+ {% for row in fsc.projectsWithMostOpenTasks %}
+
+ |
+ {{ row.nombre }}
+ |
+ {{ row.total }} |
+
+ {% else %}
+
+ | {{ trans('no-data') }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | {{ trans('task') }} |
+ {{ trans('project') }} |
+ {{ trans('end-date') }} |
+
+
+
+ {% for row in fsc.overdueTasks %}
+
+ |
+ {{ row.nombre }}
+ |
+ {{ row.proyecto }} |
+ {{ row.fechafin | date('d-m-Y') }} |
+
+ {% else %}
+
+ | {{ trans('no-data') }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+{% endblock %}
+
+{% block javascripts %}
+ {{ parent() }}
+
+
+{% endblock %}
diff --git a/XMLView/EditTareaProyecto.xml b/XMLView/EditTareaProyecto.xml
index 79bcbf9..d1857f5 100644
--- a/XMLView/EditTareaProyecto.xml
+++ b/XMLView/EditTareaProyecto.xml
@@ -41,6 +41,9 @@