summaryrefslogtreecommitdiff
path: root/templates/parts/taskEntry.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/parts/taskEntry.html')
-rw-r--r--templates/parts/taskEntry.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/parts/taskEntry.html b/templates/parts/taskEntry.html
new file mode 100644
index 0000000..3c3be3f
--- /dev/null
+++ b/templates/parts/taskEntry.html
@@ -0,0 +1,8 @@
+<option>-</option>
+{{ range $group, $tasks := index . 0}}
+<optgroup label="{{$group}}">
+ {{ range $task := $tasks }}
+ <option {{if eq $task.Id (index $ 1)}}selected{{end}} value="{{$task.Id}}">{{$task.Text}}</option>
+ {{ end }}
+</optgroup>
+{{ end }}