[% USE HTML %]
<tr>
<td>
- <input type="hidden" name="show_details" value="[% HTML.escape(show_details) %]">
- <input type="checkbox" id="cb_show_details" onclick="show_form_details([% IF show_details %]0[% ELSE %]1[% END %]);"[%- IF show_details %] checked[% END %]>
- <label for="cb_show_details">Details anzeigen</label><br>
- <table width="100%">
+ <input type="button" id="cb_show_details" name="show_details" value='Detailsanzeige'>
+ <script type="text/javascript">
+ $('#cb_show_details').click(function(){ $('[id$="row2"]').toggle() });
+ </script>
+ <table id='display_row' width="100%">
<tr class="listheading">[% FOREACH header = HEADER %][% IF header.display %]
<th align="left" nowrap width="[% header.width %]" class="listheading">[% header.value %]</th>[% END %][% END %]
</tr>
[% FOREACH hidden = row.HIDDENS %][% hidden.value %]
[% END %]
- <tr class="listrow[% loop.count % 2 %]" [% UNLESS show_details %]style="display:none;"[% END %]><td colspan="[% row.colspan %]">[% FOREACH row2 = row.ROW2 %]
+ <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 %]
[% IF row2.line_break %]<br/>[% END %]
[% row2.value %][% END %]
</td></tr>
</table>
</td>
</tr>
+<script type='text/javascript'>
+ $(document).ready( function(){ $('#display_row tr:gt(1) input[name*="description"]').focus() });
+</script>