From 5f4d8982a8aa15e2e9e3316644c1bc1eb84a5a8b Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 10 Jun 2024 20:58:42 +0200 Subject: [PATCH] require necessary fields --- templates/includes/forms/log.html.tera | 2 +- templates/trailerreservations.html.tera | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index e444899..7395747 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -70,7 +70,7 @@ {% endmacro new %} {% macro boat_select(id="boat_id") %} - {{ macros::select(label="Boot", data=boats, name="boat_id", id=id, display=["name", " (","cat",")"], extras=["default_shipmaster_only_steering", "amount_seats", "on_water", "default_destination"], wrapper_class="col-span-4", show_seats=true, nonSelectableDefault=" -- Wähle ein Boot aus ---") }} + {{ macros::select(label="Boot", data=boats, name="boat_id", required=true, id=id, display=["name", " (","cat",")"], extras=["default_shipmaster_only_steering", "amount_seats", "on_water", "default_destination"], wrapper_class="col-span-4", show_seats=true, nonSelectableDefault=" -- Wähle ein Boot aus ---") }} {% endmacro boat_select %} {% macro rower_select(id, selected, amount_seats='', class='', init='false', cox_on_boat='', steering_person_id='') %} {#{% if not amount_seats or amount_seats > 1 %}#} diff --git a/templates/trailerreservations.html.tera b/templates/trailerreservations.html.tera index b938bd2..7c55e14 100644 --- a/templates/trailerreservations.html.tera +++ b/templates/trailerreservations.html.tera @@ -19,7 +19,7 @@