summaryrefslogtreecommitdiff
path: root/components/actions_table.html
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-04-03 15:16:47 +0300
committerGrailFinder <wohilas@gmail.com>2024-04-03 15:16:47 +0300
commit6fae7099dd2f2632aff9db3d6c04d8e66396f02d (patch)
treef98670b46fcab1358a2a0ba849180ccc0e2d6050 /components/actions_table.html
parent925b7b7a6a6de1f40262d0fc96be7920b26b0021 (diff)
Enha: and cond; done button
Diffstat (limited to 'components/actions_table.html')
-rw-r--r--components/actions_table.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/actions_table.html b/components/actions_table.html
index f0c6572..f862906 100644
--- a/components/actions_table.html
+++ b/components/actions_table.html
@@ -18,13 +18,15 @@
<th>Name</th>
<th>Magnitude</th>
<th>Repeatable</th>
+ <th>Commit</th>
</tr>
{{range $action := .Actions}}
- {{if eq $action.Type "ActionTypePlus"}}
+ {{if and (eq $action.Type "ActionTypePlus") (not $action.Done)}}
<tr>
<td>{{$action.Name}}</td>
<td>{{$action.Magnitude}}</td>
<td>{{$action.Repeatable}}</td>
+ <td><button>Done it</button></td>
</tr>
{{end}}
{{end}}
@@ -37,6 +39,7 @@
<th>Name</th>
<th>Magnitude</th>
<th>Repeatable</th>
+ <th>Commit</th>
</tr>
{{range $action := .Actions}}
{{if eq $action.Type "ActionTypeMinus"}}
@@ -44,6 +47,7 @@
<td>{{$action.Name}}</td>
<td>{{$action.Magnitude}}</td>
<td>{{$action.Repeatable}}</td>
+ <td><button>Done it</button></td>
</tr>
{{end}}
{{end}}