4 <input type="button" id="cb_show_details" name="show_details" value='<translate>Show details</translate>'>
5 <script type="text/javascript">
6 $('#cb_show_details').click(function(){ $('[id$="row2"]').toggle() });
8 <table id='display_row' width="100%">
9 <tr class="listheading">[% FOREACH header = HEADER %][% IF header.display %]
10 <th align="left" nowrap width="[% header.width %]" class="listheading">[% header.value %]</th>[% END %][% END %]
13 [% FOREACH row = ROWS %]
14 <tr valign="top" class="[% IF row.error %]error_message[% ELSE %]listrow[% loop.count % 2 %][% END %]">[% FOREACH row1 = row.ROW1 %]
15 <td align="[% row1.align %]"[% IF row1.nowrap %] nowrap[% END %]>[% row1.value %]</td>[% END %]
18 [% FOREACH hidden = row.HIDDENS %][% hidden.value %]
21 <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 %]
22 [% IF row2.line_break %]<br/>[% END %]
23 [% row2.value %][% END %]
30 <script type='text/javascript'>
31 $(document).ready( function(){ $('#display_row tr:gt(1) input[name*="description"]').focus() });