Revision b4c3aa7b
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/delivery_value_report/_filter.html | ||
---|---|---|
1 |
<form action='controller.pl' method='post' id='filter_form'> |
|
2 |
<div class='filter_toggle'> |
|
3 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
|
4 |
[% SELF.filter_summary | html %] |
|
5 |
</div> |
|
6 |
<div class='filter_toggle' style='display:none'> |
|
7 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a> |
|
8 |
<table id='filter_table'> |
|
9 |
<tr> |
|
10 |
<th align="right">[% 'Number' | $T8 %]</th> |
|
11 |
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td> |
|
12 |
</tr> |
|
13 |
<tr> |
|
14 |
<th align="right">[% 'Document Project Number' | $T8 %]</th> |
|
15 |
<td>[% L.input_tag('filter.order.globalproject.projectnumber:substr::ilike', filter.order.globalproject.projectnumber_substr__ilike, size = 20) %]</td> |
|
16 |
</tr> |
|
17 |
<tr> |
|
18 |
<th align="right">[% 'Part Number' | $T8 %]</th> |
|
19 |
<td>[% L.input_tag('filter.part.partnumber:substr::ilike', filter.part.partnumber_substr__ilike, size = 20) %]</td> |
|
20 |
</tr> |
|
21 |
<tr> |
|
22 |
<th align="right">[% 'Part Description' | $T8 %]</th> |
|
23 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th align="right">[% 'Delivery Date' | $T8 %] [% 'From Date' | $T8 %]</th> |
|
27 |
<td>[% L.date_tag('filter.reqdate:date::ge', filter.reqdate_date__ge) %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th align="right">[% 'Delivery Date' | $T8 %] [% 'To Date' | $T8 %]</th> |
|
31 |
<td>[% L.date_tag('filter.reqdate:date::le', filter.reqdate_date__le) %]</td> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
<th align="right">[% 'Quantity' | $T8 %]</th> |
|
35 |
<td>[% L.input_tag('filter.qty:number', filter.qty_number, size = 20) %]</td> |
|
36 |
</tr> |
|
37 |
[% IF SELF.vc == 'customer' %] |
|
38 | 1 |
[% USE T8 %] |
39 | 2 |
[% USE L %] |
40 | 3 |
[% USE LxERP %] |
41 | 4 |
[% USE HTML %] |
42 | 5 |
|
6 |
<form action="controller.pl" method="post" id="filter_form"> |
|
7 |
<div class="wrapper"> |
|
8 |
|
|
9 |
[% BLOCK filter_toggle_panel %] |
|
10 |
<table id="filter_table" class="tbl-horizontal"> |
|
11 |
<caption>[% 'Order' | $T8 %] & [% IF SELF.vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</caption> |
|
12 |
<colgroup><col class="wi-small"><col class="wi-normal"></colgroup> |
|
13 |
<tbody> |
|
14 |
<tr> |
|
15 |
<th>[% 'Order Number' | $T8 %]</th> |
|
16 |
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, class='wi-normal') %]</td> |
|
17 |
</tr> |
|
18 |
<tr> |
|
19 |
<th>[% 'Document Project Number' | $T8 %]</th> |
|
20 |
<td>[% L.input_tag('filter.order.globalproject.projectnumber:substr::ilike', filter.order.globalproject.projectnumber_substr__ilike, class='wi-normal') %]</td> |
|
21 |
</tr> |
|
22 |
[% IF SELF.vc == 'customer' %] |
|
23 |
<tr> |
|
24 |
<th>[% 'Customer' | $T8 %]</th> |
|
25 |
<td>[% L.input_tag('filter.order.customer.name:substr::ilike', filter.order.customer.name_substr__ilike, class='wi-normal') %]</td> |
|
26 |
</tr> |
|
27 |
<tr> |
|
28 |
<th>[% 'Customer Number' | $T8 %]</th> |
|
29 |
<td>[% L.input_tag('filter.order.customer.customernumber:substr::ilike', filter.order.customer.customernumber_substr__ilike, class='wi-normal') %]</td> |
|
30 |
</tr> |
|
31 |
[% ELSE %] |
|
32 |
<tr> |
|
33 |
<th>[% 'Vendor' | $T8 %]</th> |
|
34 |
<td>[% L.input_tag('filter.order.vendor.name:substr::ilike', filter.order.vendor.name_substr__ilike, class='wi-normal') %]</td> |
|
35 |
</tr> |
|
36 |
<tr> |
|
37 |
<th>[% 'Vendor Number' | $T8 %]</th> |
|
38 |
<td>[% L.input_tag('filter.order.vendor.vendornumber:substr::ilike', filter.order.vendor.vendornumber_substr__ilike, class='wi-normal') %]</td> |
|
39 |
</tr> |
|
40 |
[% END %] |
|
41 |
<tr> |
|
42 |
<th>[% 'Customer type' | $T8 %]</th> |
|
43 |
<td> |
|
44 |
[% L.select_tag('filter.order.customer.business_id', SELF.all_businesses, |
|
45 |
default => filter.order.customer.business_id, |
|
46 |
title_key => 'description', |
|
47 |
value_key => 'id', |
|
48 |
with_empty => 1, |
|
49 |
class => 'wi-normal') %] |
|
50 |
</td> |
|
51 |
</tr> |
|
52 |
</tbody> |
|
53 |
</table> |
|
54 |
|
|
55 |
<table class="tbl-horizontal"> |
|
56 |
<caption>[% 'Article' | $T8 %]</caption> |
|
57 |
<colgroup> <col class="wi-small"><col class="wi-normal"> </colgroup> |
|
58 |
<tbody> |
|
59 |
<tr> |
|
60 |
<th>[% 'Part Number' | $T8 %]</th> |
|
61 |
<td>[% L.input_tag('filter.part.partnumber:substr::ilike', filter.part.partnumber_substr__ilike, class='wi-normal') %]</td> |
|
62 |
</tr> |
|
63 |
<tr> |
|
64 |
<th>[% 'Part Description' | $T8 %]</th> |
|
65 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-normal') %]</td> |
|
66 |
</tr> |
|
67 |
<tr> |
|
68 |
<th>[% 'Quantity' | $T8 %]</th> |
|
69 |
<td>[% L.input_tag('filter.qty:number', filter.qty_number, class='wi-normal') %]</td> |
|
70 |
</tr> |
|
71 |
<tr> |
|
72 |
<th>[% 'Type' | $T8 %]</th> |
|
73 |
<td> |
|
74 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.part, value='part', label=LxERP.t8('Part')) %] |
|
75 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.service, value='service', label=LxERP.t8('Service')) %] |
|
76 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assembly, value='assembly', label=LxERP.t8('Assembly')) %] |
|
77 |
[% IF INSTANCE_CONF.get_feature_experimental_assortment %] |
|
78 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assortment, value='assortment', label=LxERP.t8('Assortment')) %] |
|
79 |
[% END %] |
|
80 |
</td> |
|
81 |
</tr> |
|
82 |
</tbody> |
|
83 |
</table> |
|
84 |
|
|
85 |
<table class="tbl-horizontal"> |
|
86 |
<caption>[% 'Handling & Dates' | $T8 %]</caption> |
|
87 |
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup> |
|
88 |
<tbody> |
|
43 | 89 |
<tr> |
44 |
<th align="right">[% 'Customer' | $T8 %]</th> |
|
45 |
<td>[% L.input_tag('filter.order.customer.name:substr::ilike', filter.order.customer.name_substr__ilike, size = 20) %]</td> |
|
46 |
</tr> |
|
47 |
<tr> |
|
48 |
<th align="right">[% 'Customer Number' | $T8 %]</th> |
|
49 |
<td>[% L.input_tag('filter.order.customer.customernumber:substr::ilike', filter.order.customer.customernumber_substr__ilike, size = 20) %]</td> |
|
50 |
</tr> |
|
51 |
[% ELSE %] <tr> |
|
52 |
<th align="right">[% 'Vendor' | $T8 %]</th> |
|
53 |
<td>[% L.input_tag('filter.order.vendor.name:substr::ilike', filter.order.vendor.name_substr__ilike, size = 20) %]</td> |
|
54 |
</tr> |
|
55 |
<tr> |
|
56 |
<th align="right">[% 'Vendor Number' | $T8 %]</th> |
|
57 |
<td>[% L.input_tag('filter.order.vendor.vendornumber:substr::ilike', filter.order.vendor.vendornumber_substr__ilike, size = 20) %]</td> |
|
58 |
</tr> |
|
59 |
[% END %] |
|
60 |
<tr> |
|
61 |
<th align="right">[% 'Customer type' | $T8 %]</th> |
|
62 |
<td> |
|
63 |
[% L.select_tag('filter.order.customer.business_id', SELF.all_businesses, |
|
64 |
default => filter.order.customer.business_id, |
|
65 |
title_key => 'description', |
|
66 |
value_key => 'id', |
|
67 |
with_empty => 1, |
|
68 |
style => 'width: 200px') %] |
|
69 |
</td> |
|
70 |
</tr> |
|
71 |
<tr> |
|
72 |
<th align="right">[% 'Employee' | $T8 %]</th> |
|
73 |
<td> |
|
74 |
[% L.select_tag('filter.order.employee_id', SELF.all_employees, |
|
75 |
default => filter.order.employee_id, |
|
76 |
title_key => 'name', |
|
77 |
value_key => 'id', |
|
78 |
with_empty => 1, |
|
79 |
style => 'width: 200px') %] |
|
80 |
</td> |
|
81 |
</tr> |
|
82 |
<tr> |
|
83 |
<th align="right">[% 'Type' | $T8 %]</th> |
|
84 |
<td> |
|
85 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.part, value='part', label=LxERP.t8('Part')) %] |
|
86 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.service, value='service', label=LxERP.t8('Service')) %] |
|
87 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assembly, value='assembly', label=LxERP.t8('Assembly')) %] |
|
88 |
[%- IF INSTANCE_CONF.get_feature_experimental_assortment %] |
|
89 |
[% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assortment, value='assortment', label=LxERP.t8('Assortment')) %] |
|
90 |
[% END %] |
|
91 |
</td> |
|
92 |
</tr> |
|
93 |
</table> |
|
90 |
<th>[% 'Delivery Date' | $T8 %] [% 'From Date' | $T8 %]</th> |
|
91 |
<td class="wi-date">[% L.date_tag('filter.reqdate:date::ge', filter.reqdate_date__ge) %]</td> |
|
92 |
</tr> |
|
93 |
<tr> |
|
94 |
<th>[% 'Delivery Date' | $T8 %] [% 'To Date' | $T8 %]</th> |
|
95 |
<td class="wi-date">[% L.date_tag('filter.reqdate:date::le', filter.reqdate_date__le) %]</td> |
|
96 |
</tr> |
|
97 |
<tr> |
|
98 |
<th>[% 'Employee' | $T8 %]</th> |
|
99 |
<td> |
|
100 |
[% L.select_tag('filter.order.employee_id', SELF.all_employees, |
|
101 |
default => filter.order.employee_id, |
|
102 |
title_key => 'name', |
|
103 |
value_key => 'id', |
|
104 |
with_empty => 1, |
|
105 |
class => 'wi-lightwide') %] |
|
106 |
</td> |
|
107 |
</tr> |
|
108 |
</tbody> |
|
109 |
</table> |
|
94 | 110 |
|
95 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
|
96 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
|
97 |
[% L.hidden_tag('page', FORM.page) %] |
|
98 |
[% L.hidden_tag('vc', SELF.vc) %] |
|
99 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %] |
|
111 |
<div class="buttons"> |
|
112 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
|
113 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
|
114 |
[% L.hidden_tag('page', FORM.page) %] |
|
115 |
[% L.hidden_tag('vc', SELF.vc) %] |
|
116 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %] |
|
100 | 117 |
</div> |
118 |
[% END # /BLOCK filter_toggle_panel %] |
|
119 |
|
|
120 |
[% INCLUDE 'common/toggle_panel.html' %] |
|
101 | 121 |
|
122 |
</div><!-- /.wrapper --> |
|
102 | 123 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/delivery_value_report/_filter.html