Revision 927e5828
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/price_rule/item.html | ||
---|---|---|
13 | 13 |
[ 'gt', LxERP.t8('is after') ], |
14 | 14 |
[ 'lt', LxERP.t8('is before') ], |
15 | 15 |
] %] |
16 |
<div> |
|
17 |
<a class='price_rule_remove_line interact cursor-pointer'>✘</a> |
|
18 |
[% L.hidden_tag('price_rule.items[+].id', item.id) %] |
|
19 |
[% L.hidden_tag('price_rule.items[].type', item.type) %] |
|
20 |
[%- SWITCH item.type %] |
|
21 |
[% CASE 'part' %] |
|
22 |
[% 'Part' | $T8 %] [% 'is' | $T8 %] [% P.part.picker('price_rule.items[].value_int', item.part) %] |
|
23 |
[% CASE 'customer' %] |
|
24 |
[% 'Customer' | $T8 %] [% 'is' | $T8 %] [% P.customer_vendor.picker('price_rule.items[].value_int', item.customer, type='customer') %] |
|
25 |
[% CASE 'vendor' %] |
|
26 |
[% 'Vendor' | $T8 %] [% 'is' | $T8 %] [% P.customer_vendor.picker('price_rule.items[].value_int', item.vendor, type='vendor') %] |
|
27 |
[% CASE 'business' %] |
|
28 |
[% 'Type of Business' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.businesses, title_key='description', default=item.value_int) %] |
|
29 |
[% CASE 'partsgroup' %] |
|
30 |
[% 'Partsgroup' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.partsgroups, title_key='partsgroup', default=item.value_int) %] |
|
31 |
[% CASE 'qty' %] |
|
32 |
[% 'Quantity' | $T8 %] [% L.select_tag('price_rule.items[].op', num_compare_ops, default=item.op) %] [% L.input_tag('price_rule.items[].value_num_as_number', item.value_num_as_number) %] |
|
33 |
[% CASE 'reqdate' %] |
|
34 |
[% 'Reqdate' | $T8 %] [% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op) %] [% L.date_tag('price_rule.items[].value_date', item.value_date) %] |
|
35 |
[% CASE 'transdate' %] |
|
36 |
[% 'Transdate Record' | $T8 %] [% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op) %] [% L.date_tag('price_rule.items[].value_date', item.value_date) %] |
|
37 |
[% CASE 'pricegroup' %] |
|
38 |
[% 'Pricegroup' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.pricegroups, title_key='pricegroup', default=item.value_int) %] |
|
39 |
[% CASE %] |
|
40 |
[%- END %] |
|
41 |
</div> |
|
16 |
|
|
17 |
<tr class="item"> |
|
18 |
<td> |
|
19 |
<a class="price_rule_remove_line interact cursor-pointer button">✘</a><!-- PENDENT: das Loeschzeichen sollte einheitlich angewendet werden. --> |
|
20 |
[% L.hidden_tag('price_rule.items[+].id', item.id) %] |
|
21 |
[% L.hidden_tag('price_rule.items[].type', item.type) %] |
|
22 |
</td> |
|
23 |
|
|
24 |
[% SWITCH item.type %] |
|
25 |
[% CASE 'part' %] |
|
26 |
<td>[% 'Part' | $T8 %]</td> |
|
27 |
<th>[% 'is' | $T8 %]</th> |
|
28 |
<td>[% P.part.picker('price_rule.items[].value_int', item.part,, class='wi-wide') %]</td> |
|
29 |
[% CASE 'customer' %] |
|
30 |
<td>[% 'Customer' | $T8 %]</td> |
|
31 |
<th>[% 'is' | $T8 %]</th> |
|
32 |
<td>[% P.customer_vendor.picker('price_rule.items[].value_int', item.customer, type='customer', class='wi-wide') %]</td> |
|
33 |
[% CASE 'vendor' %] |
|
34 |
<td>[% 'Vendor' | $T8 %]</td> |
|
35 |
<th>[% 'is' | $T8 %]</th> |
|
36 |
<td>[% P.customer_vendor.picker('price_rule.items[].value_int', item.vendor, type='vendor', class='wi-wide') %]</td> |
|
37 |
[% CASE 'business' %] |
|
38 |
<td>[% 'Type of Business' | $T8 %]</td> |
|
39 |
<th>[% 'is' | $T8 %]</th> |
|
40 |
<td>[% L.select_tag('price_rule.items[].value_int', SELF.businesses, title_key='description', default=item.value_int, class='wi-wide') %]</td> |
|
41 |
[% CASE 'partsgroup' %] |
|
42 |
<td>[% 'Partsgroup' | $T8 %]</td> |
|
43 |
<th>[% 'is' | $T8 %]</th> |
|
44 |
<td>[% L.select_tag('price_rule.items[].value_int', SELF.partsgroups, title_key='partsgroup', default=item.value_int, class='wi-wide') %]</td> |
|
45 |
[% CASE 'qty' %] |
|
46 |
<td>[% 'Quantity' | $T8 %]</td> |
|
47 |
<th>[% L.select_tag('price_rule.items[].op', num_compare_ops, default=item.op, class='wi-normal' ) %]</th> |
|
48 |
<td>[% L.input_tag('price_rule.items[].value_num_as_number', item.value_num_as_number, class='wi-small') %]</td> |
|
49 |
[% CASE 'reqdate' %] |
|
50 |
<td>[% 'Reqdate' | $T8 %]</td> |
|
51 |
<th>[% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op, class='wi-normal') %]</th> |
|
52 |
<td>[% L.date_tag('price_rule.items[].value_date', item.value_date,, class='wi-date') %]</td> |
|
53 |
[% CASE 'transdate' %]</td> |
|
54 |
<td>[% 'Transdate Record' | $T8 %]</td> |
|
55 |
<th>[% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op, class='wi-normal') %]</th> |
|
56 |
<td>[% L.date_tag('price_rule.items[].value_date', item.value_date,, class='wi-date') %]</td> |
|
57 |
[% CASE 'pricegroup' %] |
|
58 |
<td>[% 'Pricegroup' | $T8 %]</td> |
|
59 |
<th>[% 'is' | $T8 %]</th> |
|
60 |
<td>[% L.select_tag('price_rule.items[].value_int', SELF.pricegroups, title_key='pricegroup', default=item.value_int, class='wi-wide') %]</td> |
|
61 |
[% CASE %] |
|
62 |
[% END %] |
|
63 |
|
|
64 |
</tr> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/price_rule/item.html