diff --git a/src/frontend/flask_app/templates/measure/task_list.html b/src/frontend/flask_app/templates/measure/task_list.html index 5e6a17b..3bf154c 100644 --- a/src/frontend/flask_app/templates/measure/task_list.html +++ b/src/frontend/flask_app/templates/measure/task_list.html @@ -122,47 +122,50 @@ {{ tasks|length }} task + {%- set total_subs = namespace(count=0) -%} + {%- for t in tasks -%} + {%- if t.subtask_count is defined -%} + {%- set total_subs.count = total_subs.count + t.subtask_count -%} + {%- elif t.subtasks -%} + {%- set total_subs.count = total_subs.count + t.subtasks|length -%} + {%- endif -%} + {%- endfor -%} + {%- if total_subs.count > 0 %} · {{ total_subs.count }} {{ _('misurazioni totali') }}{% endif %} {% if tasks %} -
+
{% for task in tasks %}
-
-
+
+
-
+ text-primary-700 dark:text-primary-300 font-bold text-base"> {{ loop.index }}
- -
- - Task {{ loop.index }} {{ _('di') }} {{ tasks|length }} - -
- -

+

+ {{ loop.index }}/{{ tasks|length }} {{ task.title or task.name or (_('Task') ~ ' ' ~ loop.index) }}

{% if task.directive or task.description %} -

+

{{ task.directive or task.description }}

{% endif %} -
+
{% if task.subtask_count is defined or task.subtasks %} @@ -239,25 +242,5 @@
{% endif %} - -
- {% if tasks %} -
- {{ tasks|length }} task · - {% set total_subs = namespace(count=0) %} - {% for t in tasks %} - {% if t.subtask_count is defined %} - {% set total_subs.count = total_subs.count + t.subtask_count %} - {% elif t.subtasks %} - {% set total_subs.count = total_subs.count + t.subtasks|length %} - {% endif %} - {% endfor %} - {% if total_subs.count > 0 %} - {{ total_subs.count }} {{ _('misurazioni totali') }} - {% endif %} -
- {% endif %} -
-
{% endblock %}