From 55ca9a5c15b5d59853b418403951e8338a870c11 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 18 Apr 2023 21:41:16 +0200 Subject: [PATCH] add optional min=0 field; add time for starting time --- templates/includes/macros.html.tera | 4 ++-- templates/index.html.tera | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 5007909..80d1413 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -24,9 +24,9 @@
{% endmacro header %} -{% macro input(label, name, type, required=false, class='rounded-md', value='') %} +{% macro input(label, name, type, required=false, class='rounded-md', value='', min='') %} - + {% endmacro input %} {% macro checkbox(label, name, id='', checked=false) %} diff --git a/templates/index.html.tera b/templates/index.html.tera index 41fa00e..f9a859e 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -193,7 +193,7 @@

Ausfahrt bearbeiten

- {{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true, value=trip.max_people) }} + {{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true, value=trip.max_people, min='0') }} {{ macros::input(label='Anmerkungen', name='notes', type='input', value=trip.notes) }}
@@ -277,8 +277,8 @@