From 2610f9b67e4a915859c029da9b17e9d262b6564e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20J=C3=B8rgensen?= Date: Sat, 25 May 2024 11:53:43 +0200 Subject: Add task ui and editing --- templates/parts/entry.html | 12 ++++++------ templates/parts/entryRows.html | 2 +- templates/parts/task.html | 18 ++++++++++++++++++ templates/parts/taskRows.html | 11 +++++++++++ 4 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 templates/parts/task.html create mode 100644 templates/parts/taskRows.html (limited to 'templates/parts') diff --git a/templates/parts/entry.html b/templates/parts/entry.html index 300f543..52f2eb3 100644 --- a/templates/parts/entry.html +++ b/templates/parts/entry.html @@ -1,4 +1,4 @@ -
+ {{ if .Detached }} {{ if gt .Entry.Id -1 }}Redigerer opgave {{ .Entry.Id }}{{else}}Redigerer ny opgave{{end}}{{ if .Tracking }}, med opgave i baggrunden!{{else}}.{{end}}
@@ -43,7 +43,7 @@ @@ -53,7 +53,7 @@ {{ end }} @@ -62,21 +62,21 @@ {{ else }} {{ end }} {{ end }} diff --git a/templates/parts/entryRows.html b/templates/parts/entryRows.html index 9e9c0eb..8f10ee3 100644 --- a/templates/parts/entryRows.html +++ b/templates/parts/entryRows.html @@ -7,7 +7,7 @@ {{ if $entry.Tag}}{{ $entry.Tag }}{{end}} {{ $entry.Comment }} - {{ if $entry.To }}{{end}} + {{ if $entry.To }}{{end}} {{ end }} diff --git a/templates/parts/task.html b/templates/parts/task.html new file mode 100644 index 0000000..a366dcf --- /dev/null +++ b/templates/parts/task.html @@ -0,0 +1,18 @@ + + {{if gt .Task.Id -1}} + + +
+ {{end}} +
+ +
+
+ + +
+ +
+
+ +
diff --git a/templates/parts/taskRows.html b/templates/parts/taskRows.html new file mode 100644 index 0000000..a2a6020 --- /dev/null +++ b/templates/parts/taskRows.html @@ -0,0 +1,11 @@ + + + {{ range $task := .Tasks }} + + + + {{ end }} + +
Trifork + +
-- cgit v1.2.3