From fb9e694919300ae9086e7534db6851a925ab855d Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 14 Apr 2024 18:27:21 +0200 Subject: [PATCH 1/3] add required role --- seeds.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/seeds.sql b/seeds.sql index 188ac10..fe34b50 100644 --- a/seeds.sql +++ b/seeds.sql @@ -7,6 +7,7 @@ INSERT INTO "role" (name) VALUES ('planned_event'); INSERT INTO "role" (name) VALUES ('Rennrudern'); INSERT INTO "role" (name) VALUES ('paid'); INSERT INTO "role" (name) VALUES ('Vorstand'); +INSERT INTO "role" (name) VALUES ('Bootsführer'); INSERT INTO "user" (name, pw) VALUES('admin', '$argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$4P4NCw4Ukhv80/eQYTsarHhnw61JuL1KMx/L9dm82YM'); INSERT INTO "user_role" (user_id, role_id) VALUES(1,1); INSERT INTO "user_role" (user_id, role_id) VALUES(1,2); -- 2.45.2 From db43ef628f14369121fe22458ae05b9ad78bd131 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Sun, 14 Apr 2024 18:36:27 +0200 Subject: [PATCH 2/3] [TASK] style steering html --- templates/steering.html.tera | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/templates/steering.html.tera b/templates/steering.html.tera index bea6763..c02d95f 100644 --- a/templates/steering.html.tera +++ b/templates/steering.html.tera @@ -2,21 +2,20 @@ {% extends "base" %} {% block content %}
-

Steuerberechtigte (Steuerprüfung oder Ausnahmegenehmigung)

-
-
-
    - {% for cox in coxes | sort(attribute='name') %}
  • {{ cox.name }}
  • {% endfor %} -
-
+

Steuerberechtigungen

+ +
+

Bootskundige

+
    + {% for cox in bootskundige | sort(attribute='name') %}
  • {{ cox.name }}
  • {% endfor %} +
-

Bootskundige

-
-
-
    - {% for cox in bootskundige | sort(attribute='name') %}
  • {{ cox.name }}
  • {% endfor %} -
-
+ +
+

Steuerberechtigte oder Personen mit Ausnahmegenehmigung

+
    + {% for cox in coxes | sort(attribute='name') %}
  • {{ cox.name }}
  • {% endfor %} +
{% endblock content %} -- 2.45.2 From b111c4a1b965c073b71b0f35e3299cc3237f5dbb Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 14 Apr 2024 18:38:41 +0200 Subject: [PATCH 3/3] lint html --- templates/index.html.tera | 7 ++++--- templates/steering.html.tera | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index 95a1bb7..21e1388 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -22,7 +22,7 @@ {{ notification.category }} • {{ notification.created_at | date(timezone="Europe/Vienna", format="%d.%m.%Y %H:%M",) }} -
{{ notification.message | safe}}
+
{{ notification.message | safe }}
{% if not notification.read_at %} @@ -47,7 +47,7 @@ {{ notification.category }} • {{ notification.created_at | date(timezone="Europe/Vienna", format="%d.%m.%Y %H:%M") }} -
{{ notification.message | safe}}
+
{{ notification.message | safe }}
{% endif %} {% endfor %} @@ -154,7 +154,8 @@ Fingerabdruck-Liste überprüfen
  • - Nachricht ausschreiben + Nachricht ausschreiben
  • diff --git a/templates/steering.html.tera b/templates/steering.html.tera index c02d95f..36461eb 100644 --- a/templates/steering.html.tera +++ b/templates/steering.html.tera @@ -3,14 +3,12 @@ {% block content %}

    Steuerberechtigungen

    -

    Bootskundige

      {% for cox in bootskundige | sort(attribute='name') %}
    • {{ cox.name }}
    • {% endfor %}
    -

    Steuerberechtigte oder Personen mit Ausnahmegenehmigung

      -- 2.45.2