From 0861d8b8d6ce411a4e0835e26327da95ae7897cc Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 28 Apr 2023 21:21:21 +0200 Subject: [PATCH] first draft of using trip types --- templates/forms/event.html.tera | 8 +++++++- templates/forms/trip.html.tera | 8 +++++++- templates/index.html.tera | 6 ++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/templates/forms/event.html.tera b/templates/forms/event.html.tera index 8c80a83..1eb14fd 100644 --- a/templates/forms/event.html.tera +++ b/templates/forms/event.html.tera @@ -9,6 +9,12 @@ {{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }} {{ macros::checkbox(label='Gäste erlauben', name='max_allow_guestspeople') }} {{ macros::input(label='Anmerkungen', name='notes', type='input') }} + - \ No newline at end of file + diff --git a/templates/forms/trip.html.tera b/templates/forms/trip.html.tera index ae6e1d2..09237e1 100644 --- a/templates/forms/trip.html.tera +++ b/templates/forms/trip.html.tera @@ -6,6 +6,12 @@ {{ macros::input(label='Startzeit (zB "10:00")', name='planned_starting_time', type='time', required=true) }} {{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }} {{ macros::input(label='Anmerkungen', name='notes', type='input') }} + - \ No newline at end of file + diff --git a/templates/index.html.tera b/templates/index.html.tera index f5f281d..47c9cfc 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -41,6 +41,9 @@
{{ planned_event.planned_starting_time }} Uhr ({{ planned_event.name }})
+ {% if planned_event.trip_type %} + Spezielles Event: {{ planned_event.trip_type.name }} + {% endif %} {{ trip.planned_starting_time }} Uhr ({{ trip.cox_name }})
+ {% if trip.trip_type %} + Spezielles Event: {{ trip.trip_type.name }} + {% endif %}