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 }}

- - -
+
- -

Task List

diff --git a/templates/layouts/main.html b/templates/layouts/main.html index b36d401..26465fa 100644 --- a/templates/layouts/main.html +++ b/templates/layouts/main.html @@ -8,6 +8,9 @@ + + +