Revision f1168af4
Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt
templates/webpages/oe/sales_order.html | ||
---|---|---|
5 | 5 |
[%- PROCESS 'amcvar/render_inputs_block.html' %] |
6 | 6 |
<tr> |
7 | 7 |
<td> |
8 |
<input type="button" id="cb_show_details" name="show_details_button" value='[% 'Show details' | $T8 %]'> |
|
8 |
<input type="button" id="cb_show_details" name="show_details_button" value='[% 'Show details' | $T8 %]'[% IF show_details %] style="display:none"[% END %]> |
|
9 |
<input type="button" id="cb_hide_details" name="hide_details_button" value='[% 'Hide details' | $T8 %]'[% IF !show_details %] style="display:none"[% END %]> |
|
9 | 10 |
<script type="text/javascript"> |
10 |
$('#cb_show_details').click(function(){ $('[id^="row2"]').toggle(); |
|
11 |
if ( $('[id^="row2"]').is(":visible") ) { |
|
12 |
$("[name='show_details']").val(1); |
|
13 |
} else { |
|
14 |
$("[name='show_details']").val(0); |
|
15 |
}}); |
|
11 |
$('#cb_show_details,#cb_hide_details').click(function(){ |
|
12 |
$('[id^="row2"],#cb_show_details,#cb_hide_details').toggle(); |
|
13 |
if ( $('[id^="row2"]').is(":visible") ) { |
|
14 |
$("[name='show_details']").val(1); |
|
15 |
} else { |
|
16 |
$("[name='show_details']").val(0); |
|
17 |
}} |
|
18 |
); |
|
16 | 19 |
</script> |
17 | 20 |
<table id='display_row' width="100%"> |
18 | 21 |
<tr class="listheading"> |
Auch abrufbar als: Unified diff
DBUpgrade-Vorschau, Verkaufsmasken: schönere Bezeichnung für Details-Buttons