From 039bf9d92249bed5be97de21eaa00b7e81264e81 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Thu, 6 Apr 2023 13:47:52 +0200 Subject: [PATCH] [TASK] styling user / cox / admin --- frontend/scss/app.scss | 6 +++++ templates/index.html.tera | 48 +++++++++++++++++++++------------------ 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/frontend/scss/app.scss b/frontend/scss/app.scss index c9e7c41..71b73ac 100644 --- a/frontend/scss/app.scss +++ b/frontend/scss/app.scss @@ -84,4 +84,10 @@ z-index: 1; } } + +.deregister-btn { + + .register-btn { + display: none; + } +} /* purgecss end ignore */ diff --git a/templates/index.html.tera b/templates/index.html.tera index 0de79c0..a86694b 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -18,8 +18,8 @@

Ausfahrten

{% for day in days %} -
-

{{ day.day| date(format="%d.%m.%Y") }}

+
+

{{ day.day| date(format="%d.%m.%Y") }}

{% for planned_event in day.planned_events %}

Planned event '{{ planned_event.name }}'

@@ -32,7 +32,7 @@ {% for cox in planned_event.cox %} {{ cox }} {% if cox == loggedin_user.name %} - ABMELDEN + Abmelden {% endif %} {% endfor %}
@@ -41,12 +41,12 @@ {% for rower in planned_event.rower%} {{ rower.name }} (angemeldet seit {{ rower.registered_at }}) {% if rower.name == loggedin_user.name %} - ABMELDEN + Abmelden {% endif %} {% endfor %} {% if planned_event.max_people > planned_event.rower | length %} - MITRUDERN + Mitrudern {% endif %} @@ -62,19 +62,23 @@ {% if day.trips | length > 0 %}
{% for trip in day.trips %} -
-
-
{{ trip.planned_starting_time }} Uhr ({{ trip.cox_name }})
- Details +
+
+
+ {{ trip.planned_starting_time }} Uhr ({{ trip.cox_name }})
+ Details +
+
+ {% for rower in trip.rower %} + {% if rower.name == loggedin_user.name %} + Abmelden + {% endif %} + {% endfor %} + {% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id %} + Mitrudern + {% endif %} +
- {% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id %} - MITRUDERN - {% endif %} - {% for rower in trip.rower %} - {% if rower.name == loggedin_user.name %} - ABMELDEN - {% endif %} - {% endfor %}
-
{{ trip.max_people }} Ruderer können sich für diese Ausfahrt anmelden
+
{{ trip.max_people }} Ruderer können teilnehmen
{% if trip.rower | length > 0 %}
@@ -108,8 +112,9 @@
{% endif %} - {% if loggedin_user.is_admin %} - Event hinzufügen +
+ {% if loggedin_user.is_admin %} + Event hinzufügen
{% endfor %}