From 37190679edf44d49da7e155081740905fd1b9e0b Mon Sep 17 00:00:00 2001 From: calboo Date: Tue, 10 Feb 2026 19:39:11 +0100 Subject: [PATCH] better tasks overwiew --- templates/tasks.html | 306 ++++++++++++++++++++++++++++++++----------- 1 file changed, 228 insertions(+), 78 deletions(-) diff --git a/templates/tasks.html b/templates/tasks.html index b9fdd4b..e948739 100644 --- a/templates/tasks.html +++ b/templates/tasks.html @@ -1,94 +1,244 @@ {% extends "layout.html" %} {% block content %} -
- -
-

Create New Task

+
+ + +
+

Tasks

+ +
+ + +
+
+ All Tasks +
+
+ Due Today +
+
+ + +
+ {% for act in activities %} + {% set act_tasks = [] %} + + {% for t in tasks %} + {% if t.activity_id|string == act._id|string %} + {% if act_tasks.append(t) %}{% endif %} + {% endif %} + {% endfor %} + +
+
+ +

{{ act.name }}

+ +
+ + {% if act_tasks %} +
    + {% for task in act_tasks %} + {% include 'task_row_partial' %} + {% endfor %} +
+ {% else %} +
No open tasks
+ {% endif %} +
+ {% endfor %} + + + {% set no_act_tasks = [] %} + {% for t in tasks %} + {% if not t.activity_id %} + {% if no_act_tasks.append(t) %}{% endif %} + {% endif %} + {% endfor %} + + {% if no_act_tasks %} +
+
+ +

Inbox / No Activity

+ +
+
    + {% for task in no_act_tasks %} + {% include 'task_row_partial' %} + {% endfor %} +
+
+ {% endif %} +
+ + + {% if templates %} +
+
+ Manage Auto-Added Templates +
+
    + {% for t in templates %} +
  • + {{ t.name }} + (on {{ t.activity_name|default('Unknown') }}) + Edit +
  • + {% endfor %} +
+
+
+
+ {% endif %} + +
+ + +