diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-18 07:06:03 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-18 07:06:03 +0000 |
| commit | e3195a6534bae000a63e884ff647fac95d9d2498 (patch) | |
| tree | a75534ac746e4054a573978bc550fd2d835de8c4 /web/templates/partials | |
| parent | e72305237e16a8c32fb017261cce129a25d70e65 (diff) | |
chore: autocommit uncommitted changes
Diffstat (limited to 'web/templates/partials')
| -rw-r--r-- | web/templates/partials/bugs.html | 12 | ||||
| -rw-r--r-- | web/templates/partials/lists-options.html | 4 | ||||
| -rw-r--r-- | web/templates/partials/task-detail.html | 12 |
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}} |
