Revision 9113776c
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/part/_pricegroup_prices.html | ||
---|---|---|
1 |
<tr> |
|
2 |
<td> |
|
3 |
<table width=50%> |
|
4 |
<tr> |
|
5 |
<th class="listheading">[% 'Price group' | $T8 %]</th> |
|
6 |
<th class="listheading">[% 'Price' | $T8 %]</th> |
|
7 |
</tr> |
|
8 |
[%- FOREACH pricegroup = SELF.all_pricegroups %] |
|
9 |
[% SET pricegroup_id = pricegroup.id |
|
10 |
price = prices_map.$pricegroup_id %] |
|
11 |
<tr class="listrow[% loop.count % 2 %]"> |
|
12 |
<td style='display:none'>[% L.hidden_tag('prices[+].pricegroup_id', pricegroup.id) %] |
|
13 |
[% L.hidden_tag('prices[].price_id', price.id) # id not used? %]</td> |
|
14 |
<td width=50%>[% L.hidden_tag('prices[].pricegroup', pricegroup.pricegroup) %][% HTML.escape(pricegroup.pricegroup) %]</td> |
|
15 |
<td width=50%>[% L.input_tag('prices[].price', price.price_as_number, size=11, class='numeric reformat_number') %]</td> |
|
16 |
</tr> |
|
17 |
[%- END %] |
|
18 |
</table> |
|
19 |
</td> |
|
20 |
</tr> |
|
21 | 1 |
[% USE T8 %] |
22 | 2 |
[% USE L %] |
23 | 3 |
[% USE HTML %] |
24 | 4 |
[% USE LxERP %] |
25 | 5 |
|
6 |
[% IF SELF.all_pricegroups.size %] |
|
7 |
<table class="tbl-horizontal"> |
|
8 |
<caption>[% 'Preisgruppen' | $T8 %]</caption> |
|
9 |
<colgroup> |
|
10 |
<col class="wi-small"> |
|
11 |
<col class="wi-lightwide"> |
|
12 |
</colgroup> |
|
13 |
<thead> |
|
14 |
<tr> |
|
15 |
<th> [% 'Price group' | $T8 %] </th> |
|
16 |
<th> [% 'Price' | $T8 %] </th> |
|
17 |
</tr> |
|
18 |
</thead> |
|
19 |
<tbody> |
|
20 |
[% FOREACH pricegroup = SELF.all_pricegroups %] |
|
21 |
[% SET pricegroup_id = pricegroup.id |
|
22 |
price = prices_map.$pricegroup_id %] |
|
23 |
<tr> |
|
24 |
<th> |
|
25 |
[% L.hidden_tag('prices[+].pricegroup_id', pricegroup.id) %] |
|
26 |
[% L.hidden_tag('prices[].price_id', price.id) # id not used? %] |
|
27 |
[% L.hidden_tag('prices[].pricegroup', pricegroup.pricegroup) %][% HTML.escape(pricegroup.pricegroup) %] |
|
28 |
</th> |
|
29 |
<td> [% L.input_tag('prices[].price', price.price_as_number, size=11, class='wi-small numeric reformat_number') %] </td> |
|
30 |
</tr> |
|
31 |
[% END %] |
|
32 |
[% # followed by Storage-Table %] |
|
33 |
|
|
34 |
</tbody> |
|
35 |
</table> |
|
36 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/part/_pricegroup_prices.html