Revision 54450d2c
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
templates/webpages/time_recording/form.html | ||
---|---|---|
14 | 14 |
|
15 | 15 |
<table> |
16 | 16 |
<thead class="listheading"> |
17 |
<th>[% 'Start' | $T8 %]</th> |
|
18 |
<th>[% 'End' | $T8 %]</th> |
|
19 |
<th>[% 'Customer' | $T8 %]</th> |
|
20 |
<th>[% 'Type' | $T8 %]</th> |
|
21 |
<th>[% 'Project' | $T8 %]</th> |
|
22 |
<th>[% 'Description' | $T8 %]</th> |
|
23 |
<th>[% 'Mitarbeiter' | $T8 %]</th> |
|
17 |
<tr> |
|
18 |
<th>[% 'Start' | $T8 %]</th> |
|
19 |
<th>[% 'End' | $T8 %]</th> |
|
20 |
<th>[% 'Customer' | $T8 %]</th> |
|
21 |
<th>[% 'Type' | $T8 %]</th> |
|
22 |
<th>[% 'Project' | $T8 %]</th> |
|
23 |
<th>[% 'Description' | $T8 %]</th> |
|
24 |
<th>[% 'Mitarbeiter' | $T8 %]</th> |
|
25 |
</tr> |
|
24 | 26 |
</thead> |
25 | 27 |
<tbody valign="top"> |
26 |
<td> |
|
27 |
[% P.date_tag('start_date', SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]<br> |
|
28 |
[% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %] |
|
29 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %] |
|
30 |
</td> |
|
31 |
<td> |
|
32 |
[% P.date_tag('end_date', SELF.end_date) %]<br> |
|
33 |
[% P.input_tag('end_time', SELF.end_time, type="time") %] |
|
34 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %] |
|
35 |
</td> |
|
36 |
<td>[% 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')) %]</td> |
|
37 |
<td>[% P.select_tag('time_recording.type_id', SELF.all_time_recording_types, default=SELF.time_recording.type.id, with_empty=1, title_key='abbreviation') %]</td> |
|
38 |
<td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %]</td> |
|
39 |
<td>[% 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')) %]</td> |
|
40 |
<td> |
|
41 |
[%- IF SELF.can_edit_all -%] |
|
42 |
[% L.select_tag('time_recording.staff_member_id', SELF.all_employees, |
|
43 |
default => SELF.time_recording.staff_member_id, |
|
44 |
title_key => 'safe_name', |
|
45 |
value_key => 'id', |
|
46 |
style => 'width: 200px') %] |
|
47 |
[%- ELSE -%] |
|
48 |
[% SELF.time_recording.staff_member.safe_name | html %] |
|
49 |
[%- END -%] |
|
50 |
</td> |
|
28 |
<tr> |
|
29 |
<td> |
|
30 |
[% P.date_tag('start_date', SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]<br> |
|
31 |
[% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %] |
|
32 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %] |
|
33 |
</td> |
|
34 |
<td> |
|
35 |
[% P.date_tag('end_date', SELF.end_date) %]<br> |
|
36 |
[% P.input_tag('end_time', SELF.end_time, type="time") %] |
|
37 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %] |
|
38 |
</td> |
|
39 |
<td>[% 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')) %]</td> |
|
40 |
<td>[% P.select_tag('time_recording.type_id', SELF.all_time_recording_types, default=SELF.time_recording.type.id, with_empty=1, title_key='abbreviation') %]</td> |
|
41 |
<td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %]</td> |
|
42 |
<td>[% 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')) %]</td> |
|
43 |
<td> |
|
44 |
[%- IF SELF.can_edit_all -%] |
|
45 |
[% L.select_tag('time_recording.staff_member_id', SELF.all_employees, |
|
46 |
default => SELF.time_recording.staff_member_id, |
|
47 |
title_key => 'safe_name', |
|
48 |
value_key => 'id', |
|
49 |
style => 'width: 200px') %] |
|
50 |
[%- ELSE -%] |
|
51 |
[% SELF.time_recording.staff_member.safe_name | html %] |
|
52 |
[%- END -%] |
|
53 |
</td> |
|
54 |
</tr> |
|
51 | 55 |
</tbody> |
52 | 56 |
</table> |
53 | 57 |
|
Auch abrufbar als: Unified diff
Zeiterfassung: form: tr-Tags vergessen