diff options
author | GrailFinder <wohilas@gmail.com> | 2024-04-11 07:13:48 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2024-04-11 07:13:48 +0300 |
commit | 9b160dcc0315aaf54a8b4588be9d2a0c98084cf0 (patch) | |
tree | f1068c6b70612d41a76b947370808cf147e45382 /components/actions_table.html | |
parent | 499dcd25aa8d1f878b379e2ca8f94417807c4afb (diff) |
Enha: make html elements to react; repeatable separation
Diffstat (limited to 'components/actions_table.html')
-rw-r--r-- | components/actions_table.html | 5 |
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> |