Revision c383fc0b
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
templates/webpages/price_rule/_filter.html | ||
---|---|---|
14 | 14 |
<th align="right">[% 'Description' | $T8 %]</th> |
15 | 15 |
<td>[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, style='width: 300px') %]</td> |
16 | 16 |
</tr> |
17 |
<tr> |
|
18 |
<th align="right">[% 'Type' | $T8 %]</th> |
|
19 |
<td>[% L.select_tag('filter.type', [ [ 'customer', LxERP.t8('Sales Price Rules '), ] [ 'vendor', LxERP.t8('Purchase Price Rules ') ] ], with_empty=1, default=filter.type, id='price_rule_filter_type', style='width: 300px') %]</td> |
|
20 |
</tr> |
|
17 | 21 |
<tr> |
18 | 22 |
<th align="right">[% 'Part' | $T8 %]</th> |
19 | 23 |
<td>[% L.part_picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, style='width: 300px') %]</td> |
20 | 24 |
</tr> |
21 |
[%- IF SELF.vc == 'customer' %] |
|
22 |
<tr> |
|
25 |
<tr id='price_rule_filter_customer_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]> |
|
23 | 26 |
<th align="right">[% 'Customer' | $T8 %]</th> |
24 |
<td>[% L.customer_vendor_picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', style='width: 300px') %]</td> |
|
27 |
<td>[% L.customer_vendor_picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', id='price_rule_filter_customer', style='width: 300px') %]</td>
|
|
25 | 28 |
</tr> |
26 |
[%- END %] |
|
27 |
[%- IF SELF.vc == 'vendor' %] |
|
28 |
<tr> |
|
29 |
<tr id='price_rule_filter_vendor_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]> |
|
29 | 30 |
<th align="right">[% 'Vendor' | $T8 %]</th> |
30 |
<td>[% L.customer_vendor_picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', style='width: 300px') %]</td> |
|
31 |
<td>[% L.customer_vendor_picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', id='price_rule_filter_vendor', style='width: 300px') %]</td>
|
|
31 | 32 |
</tr> |
32 |
[%- END %] |
|
33 | 33 |
<tr> |
34 | 34 |
<th align="right">[% 'Business' | $T8 %]</th> |
35 | 35 |
<td>[% L.select_tag('filter.item_type_matches[].business', SELF.businesses, title_key='description', default=FORM.filter.item_type_matches.0.business, with_empty=1, style='width: 300px') %]</td> |
... | ... | |
87 | 87 |
</table> |
88 | 88 |
|
89 | 89 |
[% L.hidden_tag('action', 'PriceRule/dispatch') %] |
90 |
[% L.hidden_tag('filter.type', FORM.filter.type) %] |
|
91 | 90 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
92 | 91 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
93 | 92 |
[% L.hidden_tag('page', FORM.page) %] |
94 |
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%] |
|
93 |
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit') %]
|
|
95 | 94 |
|
96 |
<a onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);$("#filter_table select").val("")'>[% 'Reset' | $T8 %]</a> |
|
95 |
<a class='interact cursor-pointer' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);$("#filter_table select").val("")'>[% 'Reset' | $T8 %]</a>
|
|
97 | 96 |
|
98 | 97 |
</div> |
99 | 98 |
|
Auch abrufbar als: Unified diff
PriceRule: Ein menüeintrag und Typen frei filterbar