summaryrefslogtreecommitdiff
path: root/templates/parts/taskRows.html
diff options
context:
space:
mode:
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>