Revision c97958c9
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
templates/design40_webpages/presenter/items_list/items_list.html | ||
---|---|---|
1 |
[% USE L %][% USE LxERP %][%- USE P -%][%- USE T8 -%] |
|
2 |
|
|
3 |
<font size="-2"> |
|
4 |
[%- IF items.size > 0 %] |
|
5 |
<table> |
|
6 |
<tr class="listheading"> |
|
7 |
<th>[% 'Position' | $T8 %]</th> |
|
8 |
<th>[% 'Partnumber' | $T8 %]</th> |
|
9 |
<th>[% 'Description' | $T8 %]</th> |
|
10 |
<th>[% 'Qty' | $T8 %]</th> |
|
11 |
<th>[% 'Unit' | $T8 %]</th> |
|
12 |
</tr> |
|
13 |
[%- FOREACH item = items %] |
|
14 |
<tr class="listrow[% IF !loop.first %] item_row_toggle_[% items.0.id %][% END %]"[% IF !loop.first %] style="display:none"[% END %]> |
|
15 |
<td align="right">[% P.escape(item.position) %]</td> |
|
16 |
<td>[% P.escape(item.part.partnumber) %]</td> |
|
17 |
<td>[% P.escape(item.description) %]</td> |
|
18 |
<td align="right">[% P.escape(item.qty_as_number) %]</td> |
|
19 |
<td>[% P.escape(item.unit) %]</td> |
|
20 |
</tr> |
|
21 |
[%- END %] |
|
22 |
</table> |
|
23 |
[%- IF items.size > 1 %] |
|
24 |
<a href="javascript:void(0);" onClick="javascript:$('.item_row_toggle_[% items.0.id %]').toggle();$('.item_row_toggle_[% items.0.id %]').is(':hidden') ? $('#toggle_text_[% items.0.id %]').html('… ⏷') : $('#toggle_text_[% items.0.id %]').html('⏶');"><span id='toggle_text_[% items.0.id %]'>… ⏷</span></a> |
|
25 |
[%- END %] |
|
26 |
[%- END %] |
|
27 |
</font> |
templates/design40_webpages/presenter/items_list/items_list.txt | ||
---|---|---|
1 |
[% FOREACH item = items -%] |
|
2 |
[% item.position %]: [% item.part.partnumber %] [% item.description %] [% item.qty_as_number %] [% item.unit %] |
|
3 |
[% END -%] |
Auch abrufbar als: Unified diff
design40: Belegberichte Positionsdetails: Templates kopiert