summaryrefslogtreecommitdiff
path: root/web/templates/partials/task-detail.html
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-18 07:06:03 +0000
committerClaudomator Agent <agent@claudomator>2026-03-18 07:06:03 +0000
commite3195a6534bae000a63e884ff647fac95d9d2498 (patch)
treea75534ac746e4054a573978bc550fd2d835de8c4 /web/templates/partials/task-detail.html
parente72305237e16a8c32fb017261cce129a25d70e65 (diff)
chore: autocommit uncommitted changes
Diffstat (limited to 'web/templates/partials/task-detail.html')
-rw-r--r--web/templates/partials/task-detail.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/templates/partials/task-detail.html b/web/templates/partials/task-detail.html
new file mode 100644
index 0000000..ace604f
--- /dev/null
+++ b/web/templates/partials/task-detail.html
@@ -0,0 +1,12 @@
+{{define "task-detail"}}
+<div class="p-4">
+ <h3 class="font-semibold text-gray-900 mb-3">{{.Title}}</h3>
+ <form hx-post="/tasks/update" hx-swap="none" hx-on::after-request="if(event.detail.successful) { closeTaskModal(); htmx.trigger(document.body, 'refresh-tasks'); }">
+ <input type="hidden" name="id" value="{{.ID}}">
+ <input type="hidden" name="source" value="{{.Source}}">
+ <label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
+ <textarea name="description" class="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm mb-3 h-32">{{.Description}}</textarea>
+ <button type="submit" class="w-full bg-primary-600 hover:bg-primary-700 text-white px-4 py-2 rounded-lg text-sm font-medium">Save</button>
+ </form>
+</div>
+{{end}}