Revision 380f448e
Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt
templates/webpages/part/_pricegroup_prices.html | ||
---|---|---|
<tr>
|
||
<td>
|
||
<table width=50%>
|
||
<tr>
|
||
<th class="listheading">[% 'Price group' | $T8 %]</th>
|
||
<th class="listheading">[% 'Price' | $T8 %]</th>
|
||
</tr>
|
||
[%- FOREACH pricegroup = SELF.all_pricegroups %]
|
||
[% SET pricegroup_id = pricegroup.id
|
||
price = prices_map.$pricegroup_id %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
<td style='display:none'>[% L.hidden_tag('prices[+].pricegroup_id', pricegroup.id) %]
|
||
[% L.hidden_tag('prices[].price_id', price.id) # id not used? %]</td>
|
||
<td width=50%>[% L.hidden_tag('prices[].pricegroup', pricegroup.pricegroup) %][% HTML.escape(pricegroup.pricegroup) %]</td>
|
||
<td width=50%>[% L.input_tag('prices[].price', price.price_as_number, size=11, class='numeric reformat_number') %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
[% USE T8 %]
|
||
[% USE L %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
|
||
[% IF SELF.all_pricegroups.size %]
|
||
<table class="tbl-horizontal">
|
||
<caption>[% 'Preisgruppen' | $T8 %]</caption>
|
||
<colgroup>
|
||
<col class="wi-small">
|
||
<col class="wi-lightwide">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th> [% 'Price group' | $T8 %] </th>
|
||
<th> [% 'Price' | $T8 %] </th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH pricegroup = SELF.all_pricegroups %]
|
||
[% SET pricegroup_id = pricegroup.id
|
||
price = prices_map.$pricegroup_id %]
|
||
<tr>
|
||
<th>
|
||
[% L.hidden_tag('prices[+].pricegroup_id', pricegroup.id) %]
|
||
[% L.hidden_tag('prices[].price_id', price.id) # id not used? %]
|
||
[% L.hidden_tag('prices[].pricegroup', pricegroup.pricegroup) %][% HTML.escape(pricegroup.pricegroup) %]
|
||
</th>
|
||
<td> [% L.input_tag('prices[].price', price.price_as_number, size=11, class='wi-small numeric reformat_number') %] </td>
|
||
</tr>
|
||
[% END %]
|
||
[% # followed by Storage-Table %]
|
||
|
||
</tbody>
|
||
</table>
|
||
[% END %]
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/part/_pricegroup_prices.html