X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Ftime_recording%2Fform.html;h=337f3c71826d96cfae48ffb35e70891cb49d0127;hb=e5c8056bdb9276b3ad4ac8a700562216f09e6cc7;hp=62e486f14ac02d4fe2fe522c118e211f197f0f7d;hpb=a2ce032d884bfbf94321c5f6ec012981807d0af9;p=kivitendo-erp.git
diff --git a/templates/webpages/time_recording/form.html b/templates/webpages/time_recording/form.html
index 62e486f14..337f3c718 100644
--- a/templates/webpages/time_recording/form.html
+++ b/templates/webpages/time_recording/form.html
@@ -21,9 +21,12 @@
- [% 'Duration' | $T8 %] ([% 'in minutes' | $T8 %]) |
+ [% 'Duration' | $T8 %] |
- [% P.input_tag('time_recording.duration', SELF.time_recording.duration, size=11) %]
+ [% 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 %]
|
[%- ELSE %]
@@ -55,7 +58,7 @@
[% 'Project' | $T8 %] |
- [% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %] |
+ [% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px', onchange='kivi.TimeRecording.project_changed()') %] |
|
@@ -82,4 +85,11 @@
+ [%- IF SELF.use_duration %]
+
+ (1)
+ [% 'Valid are integer values and floating point numbers, e.g. 4.75h = 4 hours and 45 minutes.' | $T8 %]
+
+ [%- END %]
+