Revision a1782bcc
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
templates/design40_webpages/time_recording/_filter.html | ||
---|---|---|
3 | 3 |
[%- USE P %] |
4 | 4 |
[%- USE LxERP %] |
5 | 5 |
[%- USE HTML %] |
6 |
|
|
6 | 7 |
<form action='controller.pl' method='post' id='filter_form'> |
7 |
<div class='filter_toggle'> |
|
8 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
|
9 |
[% SELF.filter_summary | html %] |
|
10 |
</div> |
|
11 |
<div class='filter_toggle' style='display:none'> |
|
12 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a> |
|
13 |
<table id='filter_table'> |
|
14 |
<tr> |
|
15 |
<th align="right">[% 'Date' | $T8 %] [% 'From Date' | $T8 %]</th> |
|
16 |
<td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]</td> |
|
17 |
</tr> |
|
18 |
<tr> |
|
19 |
<th align="right">[% 'Date' | $T8 %] [% 'To Date' | $T8 %]</th> |
|
20 |
<td>[% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td> |
|
21 |
</tr> |
|
22 |
<tr> |
|
23 |
<th align="right">[% 'Customer' | $T8 %]</th> |
|
24 |
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td> |
|
25 |
</tr> |
|
26 |
<tr> |
|
27 |
<th align="right">[% 'Customer Number' | $T8 %]</th> |
|
28 |
<td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, size = 20) %]</td> |
|
29 |
</tr> |
|
30 |
<tr> |
|
31 |
<th align="right">[% 'Order Number' | $T8 %]</th> |
|
32 |
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td> |
|
33 |
</tr> |
|
34 |
<tr> |
|
35 |
<th align="right">[% 'Project' | $T8 %]</th> |
|
36 |
<td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', size = 20) %]</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
40 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td> |
|
41 |
</tr> |
|
8 |
<div class="wrapper"> |
|
42 | 9 |
|
43 |
[%- IF SELF.can_view_all -%] |
|
44 |
<tr> |
|
45 |
<th align="right">[% 'Mitarbeiter' | $T8 %]</th> |
|
46 |
<td> |
|
47 |
[% L.select_tag('filter.staff_member_id', SELF.all_employees, |
|
48 |
default => filter.staff_member_id, |
|
49 |
title_key => 'name', |
|
50 |
value_key => 'id', |
|
51 |
with_empty => 1, |
|
52 |
style => 'width: 200px') %] |
|
53 |
</td> |
|
54 |
</tr> |
|
55 |
[%- END -%] |
|
10 |
[% BLOCK filter_toggle_panel %] |
|
11 |
<table id='filter_table' class="tbl-horizontal"> |
|
12 |
<tbody> |
|
13 |
<tr> |
|
14 |
<th>[% 'Date' | $T8 %] [% 'From Date' | $T8 %]</th> |
|
15 |
<td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge, class='wi-date') %] [% 'To (time)' | $T8 %][% L.date_tag('filter.date:date::le', filter.date_date__le, class='wi-date') %]</td> |
|
16 |
</tr> |
|
17 |
<tr> |
|
18 |
<th>[% 'Customer' | $T8 %]</th> |
|
19 |
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class='wi-lightwide') %]</td> |
|
20 |
</tr> |
|
21 |
<tr> |
|
22 |
<th>[% 'Customer Number' | $T8 %]</th> |
|
23 |
<td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, class='wi-lightwide') %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th>[% 'Order Number' | $T8 %]</th> |
|
27 |
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, class='wi-lightwide') %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th>[% 'Project' | $T8 %]</th> |
|
31 |
<td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', class='wi-lightwide') %]</td> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
<th>[% 'Description' | $T8 %]</th> |
|
35 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-lightwide') %]</td> |
|
36 |
</tr> |
|
56 | 37 |
|
57 |
<tr> |
|
58 |
<th align="right">[% 'Booked' | $T8 %]</th> |
|
59 |
<td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, style="width: 200px") %]</td> |
|
60 |
</tr> |
|
38 |
[%- IF SELF.can_view_all -%] |
|
39 |
<tr> |
|
40 |
<th>[% 'Mitarbeiter' | $T8 %]</th> |
|
41 |
<td> |
|
42 |
[% L.select_tag('filter.staff_member_id', SELF.all_employees, |
|
43 |
default => filter.staff_member_id, |
|
44 |
title_key => 'name', |
|
45 |
value_key => 'id', |
|
46 |
with_empty => 1, |
|
47 |
class => 'wi-lightwide') %] |
|
48 |
</td> |
|
49 |
</tr> |
|
50 |
[%- END -%] |
|
61 | 51 |
|
62 |
</table> |
|
52 |
<tr> |
|
53 |
<th>[% 'Booked' | $T8 %]</th> |
|
54 |
<td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, class => 'wi-lightwide') %]</td> |
|
55 |
</tr> |
|
56 |
</tbody> |
|
57 |
</table> |
|
63 | 58 |
|
64 | 59 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
65 | 60 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
66 | 61 |
[% L.hidden_tag('page', FORM.page) %] |
67 |
[% L.button_tag('$("#filter_form").clearForm()', LxERP.t8('Reset')) %] |
|
62 |
<div class="buttons"> |
|
63 |
[% L.button_tag('$("#filter_form").clearForm()', LxERP.t8('Reset'), class='neutral') %] |
|
68 | 64 |
</div> |
69 | 65 |
|
66 |
[% END # /BLOCK filter_toggle_panel %] |
|
67 |
|
|
68 |
[% INCLUDE 'common/toggle_panel.html' %] |
|
69 |
|
|
70 |
</div> |
|
70 | 71 |
</form> |
templates/design40_webpages/time_recording/form.html | ||
---|---|---|
12 | 12 |
[% P.hidden_tag('id', SELF.time_recording.id) %] |
13 | 13 |
[% L.hidden_tag('callback', FORM.callback) %] |
14 | 14 |
|
15 |
<table> |
|
16 |
[%- IF SELF.use_duration %] |
|
17 |
<tr> |
|
18 |
<th align="right">[% 'Date' | $T8 %]</th> |
|
19 |
<td> |
|
20 |
[% P.date_tag('time_recording.date_as_date', SELF.time_recording.date_as_date, "data-validate"="required", "data-title"=LxERP.t8('Date')) %]<br> |
|
21 |
</td> |
|
22 |
</tr> |
|
23 |
<tr> |
|
24 |
<th align="right">[% 'Duration' | $T8 %]</th> |
|
25 |
<td> |
|
26 |
[% P.input_tag('duration_h', SELF.time_recording.duration_as_hours || '', size=4, class='numeric', |
|
27 |
"data-validate"="number", "data-title"=LxERP.t8('h'), "placeholder"=LxERP.format_amount(0.00, 2)) %] [% 'h' | $T8 %]<sup>(1)</sup> |
|
28 |
[% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', size=4, class='numeric', |
|
29 |
"data-validate"="number", "data-title"=LxERP.t8('min'), "placeholder"="0" ) %] [% 'min' | $T8 %] |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
[%- ELSE %] |
|
33 |
<tr> |
|
34 |
<th align="right">[% 'Start' | $T8 %]</th> |
|
35 |
<td> |
|
36 |
[% P.date_tag('start_date', SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %] |
|
37 |
[% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %] |
|
38 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %] |
|
39 |
</td> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<th align="right">[% 'End' | $T8 %]</th> |
|
43 |
<td> |
|
44 |
[% P.date_tag('end_date', SELF.end_date) %] |
|
45 |
[% P.input_tag('end_time', SELF.end_time, type="time") %] |
|
46 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %] |
|
47 |
</td> |
|
48 |
</tr> |
|
49 |
[%- END %] |
|
50 |
<tr></tr><tr></tr> |
|
51 |
<tr> |
|
52 |
<th align="right">[% 'Sales Order' | $T8 %]</th> |
|
53 |
<td>[% 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)') %]</td> |
|
54 |
</tr> |
|
55 |
<tr> |
|
56 |
<th align="right">[% 'Customer' | $T8 %]</th> |
|
57 |
<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> |
|
58 |
</tr> |
|
59 |
<tr> |
|
60 |
<th align="right">[% 'Project' | $T8 %]</th> |
|
61 |
<td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px') %]</td> |
|
62 |
</tr> |
|
63 |
<tr></tr><tr></tr> |
|
64 |
<tr> |
|
65 |
<th align="right">[% 'Article' | $T8 %]</th> |
|
66 |
<td>[% 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') %]</td> |
|
67 |
</tr> |
|
68 |
<tr> |
|
69 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
70 |
<td>[% 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')) %]</td> |
|
71 |
</tr> |
|
72 |
<tr> |
|
73 |
<th align="right">[% 'Mitarbeiter' | $T8 %]</th> |
|
74 |
<td> |
|
75 |
[%- IF SELF.can_edit_all -%] |
|
76 |
[% L.select_tag('time_recording.staff_member_id', SELF.all_employees, |
|
77 |
default => SELF.time_recording.staff_member_id, |
|
78 |
title_key => 'safe_name', |
|
79 |
value_key => 'id', |
|
80 |
style => 'width: 300px') %] |
|
81 |
[%- ELSE -%] |
|
82 |
[% SELF.time_recording.staff_member.safe_name | html %] |
|
83 |
[%- END -%] |
|
84 |
</td> |
|
85 |
</tr> |
|
86 |
</table> |
|
15 |
<div class="wrapper"> |
|
16 |
<table class="tbl-horizontal"> |
|
17 |
<tbody> |
|
18 |
[%- IF SELF.use_duration %] |
|
19 |
<tr> |
|
20 |
<th>[% 'Date' | $T8 %]</th> |
|
21 |
<td> |
|
22 |
[% P.date_tag('time_recording.date_as_date', SELF.time_recording.date_as_date, class='wi-date', "data-validate"="required", "data-title"=LxERP.t8('Date')) %]<br> |
|
23 |
</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th>[% 'Duration' | $T8 %]</th> |
|
27 |
<td> |
|
28 |
[% P.input_tag('duration_h', SELF.time_recording.duration_as_hours || '', class='numeric wi-smallest', |
|
29 |
"data-validate"="number", "data-title"=LxERP.t8('h'), "placeholder"=LxERP.format_amount(0.00, 2)) %] [% 'h' | $T8 %]<sup>(1)</sup> |
|
30 |
[% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', class='numeric wi-smallest', |
|
31 |
"data-validate"="number", "data-title"=LxERP.t8('min'), "placeholder"="0" ) %] [% 'min' | $T8 %] |
|
32 |
</td> |
|
33 |
</tr> |
|
34 |
[%- ELSE %] |
|
35 |
<tr> |
|
36 |
<th>[% 'Start' | $T8 %]</th> |
|
37 |
<td> |
|
38 |
[% P.date_tag('start_date', SELF.start_date, class='wi-date', "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %] |
|
39 |
[% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %] |
|
40 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %] |
|
41 |
</td> |
|
42 |
</tr> |
|
43 |
<tr> |
|
44 |
<th>[% 'End' | $T8 %]</th> |
|
45 |
<td> |
|
46 |
[% P.date_tag('end_date', SELF.end_date, class='wi-date') %] |
|
47 |
[% P.input_tag('end_time', SELF.end_time, type="time") %] |
|
48 |
[% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %] |
|
49 |
</td> |
|
50 |
</tr> |
|
51 |
[%- END %] |
|
52 |
<tr></tr><tr></tr> |
|
53 |
<tr> |
|
54 |
<th>[% 'Sales Order' | $T8 %]</th> |
|
55 |
<td>[% P.select_tag('time_recording.order_id', SELF.all_orders, default=SELF.time_recording.order_id, with_empty=1, class='wi-wide', onchange='kivi.TimeRecording.order_changed(this.value)') %]</td> |
|
56 |
</tr> |
|
57 |
<tr> |
|
58 |
<th>[% 'Customer' | $T8 %]</th> |
|
59 |
<td>[% P.customer_vendor.picker('time_recording.customer_id', SELF.time_recording.customer_id, type='customer', class='wi-wide', "data-validate"="required", "data-title"=LxERP.t8('Customer')) %]</td> |
|
60 |
</tr> |
|
61 |
<tr> |
|
62 |
<th>[% 'Project' | $T8 %]</th> |
|
63 |
<td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', class='wi-wide') %]</td> |
|
64 |
</tr> |
|
65 |
<tr></tr><tr></tr> |
|
66 |
<tr> |
|
67 |
<th>[% 'Article' | $T8 %]</th> |
|
68 |
<td>[% 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', class='wi-wide') %]</td> |
|
69 |
</tr> |
|
70 |
<tr> |
|
71 |
<th>[% 'Description' | $T8 %]</th> |
|
72 |
<td class="wi-wide">[% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="height: 150px", class="texteditor wi-wide", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]</td> |
|
73 |
</tr> |
|
74 |
<tr> |
|
75 |
<th>[% 'Mitarbeiter' | $T8 %]</th> |
|
76 |
<td> |
|
77 |
[%- IF SELF.can_edit_all -%] |
|
78 |
[% L.select_tag('time_recording.staff_member_id', SELF.all_employees, |
|
79 |
default => SELF.time_recording.staff_member_id, |
|
80 |
title_key => 'safe_name', |
|
81 |
value_key => 'id', |
|
82 |
class => 'wi-wide') %] |
|
83 |
[%- ELSE -%] |
|
84 |
[% SELF.time_recording.staff_member.safe_name | html %] |
|
85 |
[%- END -%] |
|
86 |
</td> |
|
87 |
</tr> |
|
88 |
</tbody> |
|
89 |
</table> |
|
90 |
</div> |
|
87 | 91 |
|
88 | 92 |
[%- IF SELF.use_duration %] |
89 | 93 |
<p> |
templates/design40_webpages/time_recording/report_bottom.html | ||
---|---|---|
1 | 1 |
[%- USE L %] |
2 |
[% L.paginate_controls(models=SELF.models) %] |
|
3 |
</form> |
|
2 |
[% L.paginate_controls(models=SELF.models) %] |
|
3 |
</form> |
|
4 |
</div> |
templates/design40_webpages/time_recording/report_top.html | ||
---|---|---|
1 | 1 |
[%- PROCESS 'time_recording/_filter.html' filter=SELF.models.filtered.laundered %] |
2 |
<hr> |
|
3 |
<form method="post" action="controller.pl" id="form"> |
|
2 |
<div class="wrapper"> |
|
3 |
<form method="post" action="controller.pl" id="form"> |
Auch abrufbar als: Unified diff
design40: Zeiterfassung: HTML-Templates angepasst