diff --git a/templates/forms/event.html.tera b/templates/forms/event.html.tera index 8905ad9..6832918 100644 --- a/templates/forms/event.html.tera +++ b/templates/forms/event.html.tera @@ -9,6 +9,8 @@ {{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }} {{ macros::checkbox(label='Gäste erlauben', name='allow_guests') }} {{ macros::input(label='Anmerkungen', name='notes', type='input') }} + {{ macros::select(select_name='trip_type', trip_types=trip_types, default='Reguläre Ausfahrt') }} + diff --git a/templates/forms/trip.html.tera b/templates/forms/trip.html.tera index 7a65a22..af4d91b 100644 --- a/templates/forms/trip.html.tera +++ b/templates/forms/trip.html.tera @@ -5,8 +5,10 @@ {{ 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::checkbox(label='Gäste erlauben', name='allow_guests') }} + {{ macros::checkbox(label='Gäste erlauben', name='allow_guests') }} {{ macros::input(label='Anmerkungen', name='notes', type='input') }} + {{ macros::select(select_name='trip_type', trip_types=trip_types, default='Reguläre Ausfahrt') }} + diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 27803e4..1f1216f 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -37,6 +37,15 @@ {% endmacro checkbox %} +{% macro select(trip_types, select_name='trip_type', default='') %} + +{% endmacro select %} + {% macro alert(message, type, class='') %}