summaryrefslogtreecommitdiff
path: root/templates/parts/taskRows.html
blob: bef236617ddda39b268ad8e9cb3908bb5930c0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<table>
  <tbody hx-swap="outerHTML" hx-trigger="changedTasks from:body" hx-get="/task/list">
    {{ range $group, $tasks := .GroupToTasks }}
    <tr>
      <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>