From b1d48a51541e47f2d365d18caece19f09366656c Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 23 Apr 2024 22:35:52 +0200 Subject: [PATCH 1/6] [TASK] improve sidebar css --- frontend/scss/components/_sidebar.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/scss/components/_sidebar.scss b/frontend/scss/components/_sidebar.scss index 619753f..26aba05 100644 --- a/frontend/scss/components/_sidebar.scss +++ b/frontend/scss/components/_sidebar.scss @@ -10,6 +10,7 @@ &.open { display: block; + height: 100dvh; height: 100vh; right: 0; top: 0; From 23a623bdc9607977369ae93de67dd187ffab8782 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 23 Apr 2024 22:36:51 +0200 Subject: [PATCH 2/6] [TASK] add etsch edge case js --- frontend/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/main.ts b/frontend/main.ts index a7497fd..8a71157 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -154,8 +154,15 @@ function selectBoatChange() { if (event.detail.customProperties.owner) { choiceObjects["newrower"].setChoiceByValue( - event.detail.customProperties.owner + "", + event.detail.customProperties.owner.toString(), ); + + if(event.detail.value === '36') { + /** custom code for Etsch */ + choiceObjects["newrower"].setChoiceByValue( + "81", + ); + } } const inputElement = document.getElementById( From e556b1375d866f3310b556c4f74d2678f6d4d700 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 23 Apr 2024 22:39:59 +0200 Subject: [PATCH 3/6] [TASK] improve styling boat list --- templates/includes/forms/log.html.tera | 44 +++++++++++++++++--------- templates/kiosk.html.tera | 25 +++++++++++++-- templates/log.html.tera | 10 +++--- 3 files changed, 57 insertions(+), 22 deletions(-) diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index fc5e78c..ca71edd 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -4,24 +4,38 @@ #} {% macro show_boats() %} {% for amount_seats, grouped_boats in boats | group_by(attribute="amount_seats") %} -
-
- {{ amount_seats }}x +
+ + + {% if grouped_boats[0].amount_seats < 9 or grouped_boats[0].amount_seats == 24 %} + {{ amount_seats }}x + {% elif grouped_boats[0].amount_seats == 9 %} + {{ grouped_boats[0].amount_seats - 1 }}+ + {% else %} + Vereinsfremde Boote + {% endif %} + + + ({{ grouped_boats | length }}) + + +
+ {% for boat in grouped_boats | sort(attribute="name") %} +
+ + {{ boat.name }} + {% if boat.owner %}(privat){% endif %} + +
+ {% endfor %}
- {% for boat in grouped_boats | sort(attribute="name") %} -
- - {{ boat.name }} - {% if boat.owner %}(privat){% endif %} - -
- {% endfor %} -
+ {% endfor %} {% endmacro show_boats %} + {# Shows the form for creating a new logbook entry. #} {% macro new(shipmaster) %}
Boote
{{ log::show_boats(only_ones=false) }}
+ -
-

Neue Ausfahrt

-
{{ log::new(only_ones=false, shipmaster=-1) }}
+
+
+

Neue Ausfahrt

+
{{ log::new(only_ones=false, shipmaster=-1) }}
+
diff --git a/templates/log.html.tera b/templates/log.html.tera index 11fac2d..741186c 100644 --- a/templates/log.html.tera +++ b/templates/log.html.tera @@ -6,14 +6,16 @@

Logbuch

- -
-

Neue Ausfahrt

-
{{ log::new(shipmaster=loggedin_user.id) }}
+
+
+

Neue Ausfahrt

+
{{ log::new(shipmaster=loggedin_user.id) }}
+
From 6c2e0669d5e503eb57d672b523bdb0fc459dbabd Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 23 Apr 2024 22:46:05 +0200 Subject: [PATCH 4/6] [TASK] improve sorting boats in schnellauswahl --- templates/kiosk.html.tera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/kiosk.html.tera b/templates/kiosk.html.tera index 48e770b..4969f73 100644 --- a/templates/kiosk.html.tera +++ b/templates/kiosk.html.tera @@ -18,7 +18,7 @@