From 992eaee3513875c3a232cf96994d3419e29a2298 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 6 May 2021 17:09:18 +0200 Subject: [PATCH] Zeiterfassung: Eingabemaske: Dauer-Felder validieren und nicht mit 0 vorbelegen --- templates/webpages/time_recording/form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/webpages/time_recording/form.html b/templates/webpages/time_recording/form.html index 9b3050b84..6dc8e6712 100644 --- a/templates/webpages/time_recording/form.html +++ b/templates/webpages/time_recording/form.html @@ -23,8 +23,8 @@ [% 'Duration' | $T8 %] - [% P.input_tag('duration_h', SELF.time_recording.duration_as_hours, size=4, class='numeric') %] [% 'h' | $T8 %](1) - [% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes, size=4, class='numeric') %] [% 'min' | $T8%] + [% P.input_tag('duration_h', SELF.time_recording.duration_as_hours || '', size=4, class='numeric', "data-validate"="number", "data-title"=LxERP.t8('h')) %] [% 'h' | $T8 %](1) + [% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', size=4, class='numeric', "data-validate"="number", "data-title"=LxERP.t8('min')) %] [% 'min' | $T8 %] [%- ELSE %] -- 2.20.1