summaryrefslogtreecommitdiff
path: root/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/partials/bugs.html12
-rw-r--r--web/templates/partials/lists-options.html4
-rw-r--r--web/templates/partials/task-detail.html12
3 files changed, 28 insertions, 0 deletions
diff --git a/web/templates/partials/bugs.html b/web/templates/partials/bugs.html
new file mode 100644
index 0000000..cb5ba25
--- /dev/null
+++ b/web/templates/partials/bugs.html
@@ -0,0 +1,12 @@
+{{define "bugs"}}
+{{if .}}
+{{range .}}
+<div class="text-sm border-b border-gray-100 py-2">
+ <p class="text-gray-900">{{.Description}}</p>
+ <p class="text-gray-400 text-xs">{{.CreatedAt.Format "Jan 2, 3:04 PM"}}</p>
+</div>
+{{end}}
+{{else}}
+<p class="text-gray-500 text-sm">No bugs reported yet.</p>
+{{end}}
+{{end}}
diff --git a/web/templates/partials/lists-options.html b/web/templates/partials/lists-options.html
new file mode 100644
index 0000000..f08fdcf
--- /dev/null
+++ b/web/templates/partials/lists-options.html
@@ -0,0 +1,4 @@
+{{define "lists-options"}}
+{{range .}}<option value="{{.ID}}">{{.Name}}</option>
+{{end}}
+{{end}}
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}}