summaryrefslogtreecommitdiff
path: root/components/actions_table.html
diff options
context:
space:
mode:
Diffstat (limited to 'components/actions_table.html')
-rw-r--r--components/actions_table.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/actions_table.html b/components/actions_table.html
index 8b151e5..24a4f9c 100644
--- a/components/actions_table.html
+++ b/components/actions_table.html
@@ -22,7 +22,7 @@
</tr>
{{range $action := .Actions}}
{{if and (eq $action.Type "ActionTypePlus") (or (not $action.Done) ($action.Repeatable))}}
- <form hx-post="/done">
+ <form hx-post="/done" hx-target="#ancestor" hx-swap="outerHTML">
<tr>
<td><input class="action_name" name="name" value={{$action.Name}} type="hidden" readonly />{{$action.Name}}</td>
<td>{{$action.Magnitude}}</td>
@@ -45,10 +45,9 @@
</tr>
{{range $action := .Actions}}
{{if eq $action.Type "ActionTypeMinus"}}
- <form hx-post="/done">
+ <form hx-post="/done" hx-target="#ancestor" hx-swap="outerHTML">
<tr>
<td><input class="action_name" name="name" value={{$action.Name}} type="hidden" readonly />{{$action.Name}}</td>
- <td>{{$action.Name}}</td>
<td>{{$action.Magnitude}}</td>
<td>{{$action.Repeatable}}</td>
<td><input type="submit" value="Done It"></input></td>