From 095c687bb818776da7ce703fec3e29e1d37ad348 Mon Sep 17 00:00:00 2001 From: nikolaswollenberg Date: Tue, 23 Jan 2024 11:17:24 +0100 Subject: [PATCH] Heatmap tasks udn task abruf --- templates/habit.html | 25 ++++-- templates/index.html | 143 +++++++++++++++++++----------- templates/layouts/indextest2.html | 63 +++---------- templates/layouts/main.html | 3 + 4 files changed, 126 insertions(+), 108 deletions(-) diff --git a/templates/habit.html b/templates/habit.html index 280f06c..71b81ba 100644 --- a/templates/habit.html +++ b/templates/habit.html @@ -2,31 +2,44 @@ {% block content %} +

Habit erstellenđź“‹

-
+
- + +
+ {{ errors.get('name', '') }} +
- + +
+ {{ errors.get('note', '') }} +
- + +
+ {{ errors.get('times', '') }} +
- - +
+ {{ errors.get('unit', '') }} +
diff --git a/templates/index.html b/templates/index.html index ef4604e..75b9c47 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,61 +5,102 @@

{{ utc_dt }}

-
- -
-

Task List

- - Task erstellen - + +
+ + +
+
+

Task List

+ + Task erstellen + +
+ +
    + {% for habit in habits %} +
  • +
    + +
    + +
    + {{ habit.name }} +
    + +
  • + +
    + {{ habit.note }} +
    + + {% endfor %} +
+
- - - {% endblock %} \ No newline at end of file diff --git a/templates/layouts/indextest2.html b/templates/layouts/indextest2.html index 03cbc40..ef4604e 100644 --- a/templates/layouts/indextest2.html +++ b/templates/layouts/indextest2.html @@ -1,37 +1,13 @@ -2{% extends 'layouts/main.html' %} +{% extends 'layouts/main.html' %} {% block content %}

{{ title }}

{{ utc_dt }}

- - -
+
- -