Revision 138ee2db
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
templates/webpages/oe/sales_order_de.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 | 2 |
<tr> |
3 | 3 |
<td> |
4 |
<input type="hidden" name="show_details" value="[% HTML.escape(show_details) %]"> |
|
5 |
<input type="checkbox" id="cb_show_details" onclick="show_form_details([% IF show_details %]0[% ELSE %]1[% END %]);"[%- IF show_details %] checked[% END %]> |
|
4 |
<input type="checkbox" id="cb_show_details" name="show_details" [%- IF show_details %] checked[% END %]> |
|
6 | 5 |
<label for="cb_show_details">Details anzeigen</label><br> |
6 |
<script type="text/javascript"> |
|
7 |
$('#cb_show_details').click(function(){ $('[id$="row2"]').toggle() }); |
|
8 |
</script> |
|
7 | 9 |
<table width="100%"> |
8 | 10 |
<tr class="listheading">[% FOREACH header = HEADER %][% IF header.display %] |
9 | 11 |
<th align="left" nowrap width="[% header.width %]" class="listheading">[% header.value %]</th>[% END %][% END %] |
... | ... | |
17 | 19 |
[% FOREACH hidden = row.HIDDENS %][% hidden.value %] |
18 | 20 |
[% END %] |
19 | 21 |
|
20 |
<tr class="listrow[% loop.count % 2 %]" [% UNLESS show_details %]style="display:none;"[% END %]><td colspan="[% row.colspan %]">[% FOREACH row2 = row.ROW2 %] |
|
22 |
<tr class="listrow[% loop.count % 2 %]" id="[% loop.count %].row2" [% UNLESS show_details %]style="display:none;"[% END %]><td colspan="[% row.colspan %]">[% FOREACH row2 = row.ROW2 %]
|
|
21 | 23 |
[% IF row2.line_break %]<br/>[% END %] |
22 | 24 |
[% row2.value %][% END %] |
23 | 25 |
</td></tr> |
templates/webpages/oe/sales_order_master.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 | 2 |
<tr> |
3 | 3 |
<td> |
4 |
<input type="hidden" name="show_details" value="[% HTML.escape(show_details) %]"> |
|
5 |
<input type="checkbox" id="cb_show_details" onclick="show_form_details([% IF show_details %]0[% ELSE %]1[% END %]);"[%- IF show_details %] checked[% END %]> |
|
4 |
<input type="checkbox" id="cb_show_details" name="show_details" [%- IF show_details %] checked[% END %]> |
|
6 | 5 |
<label for="cb_show_details"><translate>Show details</translate></label><br> |
6 |
<script type="text/javascript"> |
|
7 |
$('#cb_show_details').click(function(){ $('[id$="row2"]').toggle() }); |
|
8 |
</script> |
|
7 | 9 |
<table width="100%"> |
8 | 10 |
<tr class="listheading">[% FOREACH header = HEADER %][% IF header.display %] |
9 | 11 |
<th align="left" nowrap width="[% header.width %]" class="listheading">[% header.value %]</th>[% END %][% END %] |
... | ... | |
17 | 19 |
[% FOREACH hidden = row.HIDDENS %][% hidden.value %] |
18 | 20 |
[% END %] |
19 | 21 |
|
20 |
<tr class="listrow[% loop.count % 2 %]" [% UNLESS show_details %]style="display:none;"[% END %]><td colspan="[% row.colspan %]">[% FOREACH row2 = row.ROW2 %] |
|
22 |
<tr class="listrow[% loop.count % 2 %]" id="[% loop.count %].row2" [% UNLESS show_details %]style="display:none;"[% END %]><td colspan="[% row.colspan %]">[% FOREACH row2 = row.ROW2 %]
|
|
21 | 23 |
[% IF row2.line_break %]<br/>[% END %] |
22 | 24 |
[% row2.value %][% END %] |
23 | 25 |
</td></tr> |
Auch abrufbar als: Unified diff
show_details über toggle (experimentell)