X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Ftime_recording%2Fform.html;h=8af1da4cffc5fe6cb59f9020623dc22c307bd265;hb=f15f5e4321df31d2279edb480e9c7fc15c3af31c;hp=f0d4c1ebb46edb6629ebd02e2107a101ed780742;hpb=5c399b8268285b0561c07e7deb6506de040c2aa4;p=kivitendo-erp.git diff --git a/templates/webpages/time_recording/form.html b/templates/webpages/time_recording/form.html index f0d4c1ebb..8af1da4cf 100644 --- a/templates/webpages/time_recording/form.html +++ b/templates/webpages/time_recording/form.html @@ -13,42 +13,91 @@ [% L.hidden_tag('callback', FORM.callback) %] - - - - - - - - - - + [%- IF SELF.use_duration %] + + + + + + + + [%- ELSE %] + + + + + + + + [%- END %] + + + + + + + - - - + + + + + + + + + + + + + + + + - +
[% 'Start' | $T8 %][% 'End' | $T8 %][% 'Customer' | $T8 %][% 'Type' | $T8 %][% 'Project' | $T8 %][% 'Description' | $T8 %][% 'Mitarbeiter' | $T8 %]
[% 'Date' | $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.date_tag('time_recording.date_as_date', SELF.time_recording.date_as_date, "data-validate"="required", "data-title"=LxERP.t8('Date')) %]
+
[% 'Duration' | $T8 %] + [% P.input_tag('duration_h', SELF.time_recording.duration_as_hours || '', size=4, class='numeric', + "data-validate"="number", "data-title"=LxERP.t8('h'), "placeholder"=LxERP.format_amount(0.00, 2)) %] [% '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'), "placeholder"="0" ) %] [% 'min' | $T8 %] +
[% 'Start' | $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')) %]
[% 'End' | $T8 %] - [% P.date_tag('end_date', SELF.end_date) %]
+ [% 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')) %]
[% 'Sales Order' | $T8 %][% P.select_tag('time_recording.order_id', SELF.all_orders, default=SELF.time_recording.order_id, with_empty=1, style='width: 300px', onchange='kivi.TimeRecording.order_changed(this.value)') %]
[% 'Customer' | $T8 %] [% 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')) %]
[% 'Project' | $T8 %][% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px') %]
[% 'Article' | $T8 %][% P.select_tag('time_recording.part_id', SELF.all_time_recording_articles, default=SELF.time_recording.part_id, with_empty=1, value_key='id', title_key='description', style='width: 300px') %]
[% 'Description' | $T8 %][% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="width: 300px; height: 150px", class="texteditor", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]
[% 'Mitarbeiter' | $T8 %] - [%- 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 -%] + [%- 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: 300px') %] + [%- ELSE -%] + [% SELF.time_recording.staff_member.safe_name | html %] + [%- END -%]
+ [%- IF SELF.use_duration %] +

+ (1) + [% 'Valid are integer values and floating point numbers, e.g. 4.75h = 4 hours and 45 minutes.' | $T8 %] +

+ [%- END %] + + +