Revision efddcbca
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
templates/design40_webpages/presenter/items_list/items_list.html | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<font size="-2"> |
4 | 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 %] |
|
5 |
<table class="tbl-list"> |
|
6 |
<colgroup> |
|
7 |
<col class="wi-smallest"> |
|
8 |
<col class="wi-verysmall"> |
|
9 |
<col class="wi-small"> |
|
10 |
<col class="wi-smallest"> |
|
11 |
<col class="wi-smallest"> |
|
12 |
</colgroup> |
|
13 |
<thead> |
|
14 |
<tr> |
|
15 |
<th>[% 'Position' | $T8 %]</th> |
|
16 |
<th>[% 'Partnumber' | $T8 %]</th> |
|
17 |
<th>[% 'Description' | $T8 %]</th> |
|
18 |
<th>[% 'Qty' | $T8 %]</th> |
|
19 |
<th>[% 'Unit' | $T8 %]</th> |
|
20 |
</tr> |
|
21 |
</thead> |
|
22 |
<tbody> |
|
23 |
[%- FOREACH item = items %] |
|
24 |
<tr [% IF !loop.first %]class="item_row_toggle_[% items.0.id %] hidden[% END %]"> |
|
25 |
<td class="right">[% P.escape(item.position) %]</td> |
|
26 |
<td>[% P.escape(item.part.partnumber) %]</td> |
|
27 |
<td>[% P.escape(item.description) %]</td> |
|
28 |
<td class="right">[% P.escape(item.qty_as_number) %]</td> |
|
29 |
<td>[% P.escape(item.unit) %]</td> |
|
30 |
</tr> |
|
31 |
[%- END %] |
|
32 |
</tbody> |
|
22 | 33 |
</table> |
23 | 34 |
[%- IF items.size > 1 %] |
24 | 35 |
<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> |
Auch abrufbar als: Unified diff
design40: Belegberichte Positionsdetails: Template angepasst