3 [%- PROCESS 'amcvar/render_inputs_block.html' %]
6 <input type="button" id="cb_show_details" name="show_details" value='[% 'Show details' | $T8 %]'>
7 <script type="text/javascript">
8 $('#cb_show_details').click(function(){ $('[id^="row2"]').toggle() });
10 <table id='display_row' width="100%">
11 <tr class="listheading">
12 [%- FOREACH header = HEADER %]
13 [%- IF header.display %]
14 <th align="left" nowrap width="[% header.width %]" class="listheading">[% header.value %]</th>
18 [%- FOREACH row = ROWS %]
19 <tr valign="top" class="[% IF row.error %]error_message[% ELSE %]listrow[% loop.count % 2 %][% END %]">
20 [%- FOREACH row1 = row.ROW1 %]
21 <td[% IF row1.align %] align="[% row1.align %]"[% END %][% IF row1.nowrap %] nowrap[% END %]>[% row1.value %]</td>
24 <tr style='display:none'>
26 [%- FOREACH hidden = row.HIDDENS %]
31 <tr class="listrow[% loop.count % 2 %]" id="row2.[% loop.count %]" [% UNLESS show_details %]style="display:none;"[% END %]>
32 <td colspan="[% row.colspan %]">
33 [%- FOREACH row2 = row.ROW2 %]
34 [%- IF row2.line_break %]<br>[%- END %]
36 [% row2.description %]
37 [% PROCESS cvar_inputs cvar = row2.render_options %]
49 <tr style='display:none'>
51 <script type='text/javascript'>
52 $(document).ready( function(){ $('#display_row tr:gt(1) input[name*="description"]').focus() });