From afb0a04fe600575b00d551da7dce6a08679ef7b8 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 26 May 2024 22:20:40 +0200 Subject: Working task selection --- templates/parts/entry.html | 37 ++++++++++++++++++++++++++----------- templates/parts/entryRows.html | 2 +- templates/parts/taskEntry.html | 8 ++++++++ templates/parts/taskRows.html | 17 +++++++++++++---- 4 files changed, 48 insertions(+), 16 deletions(-) create mode 100644 templates/parts/taskEntry.html (limited to 'templates/parts') diff --git a/templates/parts/entry.html b/templates/parts/entry.html index 52f2eb3..4be2073 100644 --- a/templates/parts/entry.html +++ b/templates/parts/entry.html @@ -16,17 +16,32 @@
- Mærker
-
- + Opgaver
+ + + + {{ if .Entry }} + {{ range $x := taskMapToArr .Entry.Tasks }} + + + + + {{ end }} + {{ end }} + + + + + +
+ +
+ +
Kommentar
diff --git a/templates/parts/entryRows.html b/templates/parts/entryRows.html index 8f10ee3..3749ddb 100644 --- a/templates/parts/entryRows.html +++ b/templates/parts/entryRows.html @@ -4,7 +4,7 @@ {{ $entry.Id }} - {{ if $entry.Tag}}{{ $entry.Tag }}{{end}} + {{ $entry.Comment }} {{ if $entry.To }}{{end}} 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 @@ + +{{ range $group, $tasks := index . 0}} + + {{ range $task := $tasks }} + + {{ end }} + +{{ end }} diff --git a/templates/parts/taskRows.html b/templates/parts/taskRows.html index a2a6020..bef2366 100644 --- a/templates/parts/taskRows.html +++ b/templates/parts/taskRows.html @@ -1,11 +1,20 @@ - {{ range $task := .Tasks }} + {{ range $group, $tasks := .GroupToTasks }} - - + + + + {{ range $task := $tasks }} + + + + + + + {{ end }} {{ end }}
Trifork - + {{ $group }}
{{ $task.Text }}{{ if $task.Ident }}{{ $task.Ident }}{{end}}
-- cgit v1.2.3