From 54450d2c4bd5283360a77b26e22687f01dbcacff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 28 Dec 2020 17:36:09 +0100 Subject: [PATCH] Zeiterfassung: form: tr-Tags vergessen --- templates/webpages/time_recording/form.html | 68 +++++++++++---------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/templates/webpages/time_recording/form.html b/templates/webpages/time_recording/form.html index f0d4c1ebb..0493b2d04 100644 --- a/templates/webpages/time_recording/form.html +++ b/templates/webpages/time_recording/form.html @@ -14,40 +14,44 @@ - - - - - - - + + + + + + + + + - - - - - - - + + + + + + + + +
[% 'Start' | $T8 %][% 'End' | $T8 %][% 'Customer' | $T8 %][% 'Type' | $T8 %][% 'Project' | $T8 %][% 'Description' | $T8 %][% 'Mitarbeiter' | $T8 %]
[% 'Start' | $T8 %][% 'End' | $T8 %][% 'Customer' | $T8 %][% 'Type' | $T8 %][% 'Project' | $T8 %][% 'Description' | $T8 %][% 'Mitarbeiter' | $T8 %]
- [% P.date_tag('start_date', SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]
- [% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %] - [% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %] -
- [% P.date_tag('end_date', SELF.end_date) %]
- [% P.input_tag('end_time', SELF.end_time, type="time") %] - [% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %] -
[% P.customer_vendor.picker('time_recording.customer_id', SELF.time_recording.customer_id, type='customer', style='width: 300px', "data-validate"="required", "data-title"=LxERP.t8('Customer')) %][% P.select_tag('time_recording.type_id', SELF.all_time_recording_types, default=SELF.time_recording.type.id, with_empty=1, title_key='abbreviation') %][% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %][% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="width: 350px; height: 150px", class="texteditor", "data-validate"="required", "data-title"=LxERP.t8('Description')) %] - [%- IF SELF.can_edit_all -%] - [% L.select_tag('time_recording.staff_member_id', SELF.all_employees, - default => SELF.time_recording.staff_member_id, - title_key => 'safe_name', - value_key => 'id', - style => 'width: 200px') %] - [%- ELSE -%] - [% SELF.time_recording.staff_member.safe_name | html %] - [%- END -%] -
+ [% P.date_tag('start_date', SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]
+ [% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %] + [% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %] +
+ [% P.date_tag('end_date', SELF.end_date) %]
+ [% P.input_tag('end_time', SELF.end_time, type="time") %] + [% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %] +
[% P.customer_vendor.picker('time_recording.customer_id', SELF.time_recording.customer_id, type='customer', style='width: 300px', "data-validate"="required", "data-title"=LxERP.t8('Customer')) %][% P.select_tag('time_recording.type_id', SELF.all_time_recording_types, default=SELF.time_recording.type.id, with_empty=1, title_key='abbreviation') %][% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %][% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="width: 350px; height: 150px", class="texteditor", "data-validate"="required", "data-title"=LxERP.t8('Description')) %] + [%- IF SELF.can_edit_all -%] + [% L.select_tag('time_recording.staff_member_id', SELF.all_employees, + default => SELF.time_recording.staff_member_id, + title_key => 'safe_name', + value_key => 'id', + style => 'width: 200px') %] + [%- ELSE -%] + [% SELF.time_recording.staff_member.safe_name | html %] + [%- END -%] +
-- 2.20.1