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/index.html | 62 +++++++++++++++++++++++------------------- templates/parts/entry.html | 12 ++++---- templates/parts/entryRows.html | 2 +- templates/parts/task.html | 18 ++++++++++++ templates/parts/taskRows.html | 11 ++++++++ 5 files changed, 70 insertions(+), 35 deletions(-) create mode 100644 templates/parts/task.html create mode 100644 templates/parts/taskRows.html (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index b2dc6b0..18ca5f0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,6 +14,10 @@ display: flex; } +.dir-column { + flex-direction: column; +} + .flex-grow { flex-grow: 1; } @@ -22,26 +26,39 @@ justify-content: flex-start; } -.week-bar { +.just-space-between { + justify-content: space-between; +} + +#task-bar { margin-left: 10px; border: 1px solid black; } +.short { + max-width: 50px; +} + .status-started { - border-color: green; + background-color: lightgreen; } .status-stopped { - border-color: red; + background-color: lightblue; } + .status-detached { - border-color: blue; + background-color: lightyellow; } #entry-bar { - border-width: 3px; - border-style: solid; + border: 1px solid black; + padding-top: 10px; +} + +#entry-form { padding: 10px; + margin-buttom: 10px; } .entry-box { @@ -50,6 +67,12 @@ #controls-bar { margin-bottom: 10px; } + +#taskForm { + background-color: lightblue; + padding: 10px; + max-width: 500px; +} @@ -60,7 +83,7 @@
-
+
{{template "entry.html" .Entry}}
@@ -80,8 +103,8 @@
-
-
+
+ - - - - - - - - - - - - -
Trifork - -
- SVT-112: fdsa Dsa ds wqw fdsf fds -
- Helligdag -
+ {{ template "task.html" .Task }} + {{ template "taskRows.html" . }}
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