Revision 5fea8a08
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
templates/webpages/oe/sales_order.html | ||
---|---|---|
5 | 5 |
<td> |
6 | 6 |
<input type="button" id="cb_show_details" name="show_details" value='[% 'Show details' | $T8 %]'> |
7 | 7 |
<script type="text/javascript"> |
8 |
$('#cb_show_details').click(function(){ $('[id$="row2"]').toggle() });
|
|
8 |
$('#cb_show_details').click(function(){ $('[id^="row2"]').toggle() });
|
|
9 | 9 |
</script> |
10 | 10 |
<table id='display_row' width="100%"> |
11 | 11 |
<tr class="listheading"> |
... | ... | |
18 | 18 |
[%- FOREACH row = ROWS %] |
19 | 19 |
<tr valign="top" class="[% IF row.error %]error_message[% ELSE %]listrow[% loop.count % 2 %][% END %]"> |
20 | 20 |
[%- FOREACH row1 = row.ROW1 %] |
21 |
<td align="[% row1.align %]"[% IF row1.nowrap %] nowrap[% END %]>[% row1.value %]</td>
|
|
21 |
<td[% IF row1.align %] align="[% row1.align %]"[% END %][% IF row1.nowrap %] nowrap[% END %]>[% row1.value %]</td>
|
|
22 | 22 |
[%- END %] |
23 | 23 |
</tr> |
24 | 24 |
<tr style='display:none'> |
... | ... | |
28 | 28 |
[%- END %] |
29 | 29 |
</td> |
30 | 30 |
</tr> |
31 |
<tr class="listrow[% loop.count % 2 %]" id="[% loop.count %].row2" [% UNLESS show_details %]style="display:none;"[% END %]>
|
|
31 |
<tr class="listrow[% loop.count % 2 %]" id="row2.[% loop.count %]" [% UNLESS show_details %]style="display:none;"[% END %]>
|
|
32 | 32 |
<td colspan="[% row.colspan %]"> |
33 | 33 |
[%- FOREACH row2 = row.ROW2 %] |
34 | 34 |
[%- IF row2.line_break %]<br>[%- END %] |
Auch abrufbar als: Unified diff
html id attribute dürfen nicht mit zahlen anfangen.