summaryrefslogtreecommitdiff
path: root/templates/parts/taskRows.html
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2024-05-26 22:20:40 +0200
committerJulian T <julian@jtle.dk>2024-05-29 22:25:47 +0200
commitafb0a04fe600575b00d551da7dce6a08679ef7b8 (patch)
tree8f90720887cf49045d65a9d17dad984dae06275c /templates/parts/taskRows.html
parent9b55b16f3b906958171b4f45002b58d5f77b9705 (diff)
Working task selectionHEADmain
Diffstat (limited to 'templates/parts/taskRows.html')
-rw-r--r--templates/parts/taskRows.html17
1 files changed, 13 insertions, 4 deletions
diff --git a/templates/parts/taskRows.html b/templates/parts/taskRows.html
index a2a6020..bef2366 100644
--- a/templates/parts/taskRows.html
+++ b/templates/parts/taskRows.html
@@ -1,11 +1,20 @@
<table>
<tbody hx-swap="outerHTML" hx-trigger="changedTasks from:body" hx-get="/task/list">
- {{ range $task := .Tasks }}
+ {{ range $group, $tasks := .GroupToTasks }}
<tr>
- <td>Trifork</td>
- <td />
- <td />
+ <td>{{ $group }}</td>
+ <td></td>
+ <td></td>
+ <td></td>
</tr>
+ {{ range $task := $tasks }}
+ <tr>
+ <td></td>
+ <td>{{ $task.Text }}</td>
+ <td>{{ if $task.Ident }}{{ $task.Ident }}{{end}}</td>
+ <td><button hx-trigger="click" hx-swap="outerHTML" hx-target="#taskForm" hx-get="/task/edit?id={{$task.Id}}" >e</button></td>
+ </tr>
+ {{ end }}
{{ end }}
</tbody>
</table>