From b2f26b66bb81228db63c896954136bcd41dd549f Mon Sep 17 00:00:00 2001
From: calboo
Date: Tue, 10 Feb 2026 19:24:11 +0100
Subject: [PATCH] start activity from task view
---
templates/task_detail.html | 11 +++++++++++
templates/tasks.html | 35 +++++++++++++++++++++++++----------
2 files changed, 36 insertions(+), 10 deletions(-)
diff --git a/templates/task_detail.html b/templates/task_detail.html
index 95a9ac6..5204e8f 100644
--- a/templates/task_detail.html
+++ b/templates/task_detail.html
@@ -10,6 +10,17 @@
Template (Auto-Add)
{% endif %}
+
+ {% if task.activity_id %}
+
+ {% else %}
+ No activity linked. Edit task to assign one.
+ {% endif %}
Back to Tasks
diff --git a/templates/tasks.html b/templates/tasks.html
index d23934a..15b2c5e 100644
--- a/templates/tasks.html
+++ b/templates/tasks.html
@@ -39,17 +39,32 @@
{% for task in tasks %}
-
-
-
{{ task.name }}
- {% if task.activity_name %}
-
- {{ task.activity_name }}
-
- {% endif %}
+
+
+
{{ task.name }}
+ {% if task.activity_name %}
+
+ {{ task.activity_name }}
+
+ {% endif %}
+
+
+
+ {% if task.activity_id %}
+
+ {% endif %}
+
+ {% if task.due_date %}
+ Due: {{ task.due_date.strftime('%Y-%m-%d %H:%M') }}
+ {% endif %}
+
- {% if task.due_date %}
-
Due: {{ task.due_date.strftime('%Y-%m-%d %H:%M') }}
- {% endif %}
{% endfor %}