  [% META title = 'Admin &raquo; Result Summary Options' -%]
  
<!-- BEGIN [% template.name %] -->
	<h2 align="center">Result Summary Options</h2>

    [% # FOREACH entry IN lab_sections; PROCESS dumper.tt dump = entry.as_tree; END %]
    
	[% PROCESS admin/misc_nav.tt page = 'result-summary-options' %]

    <form method="post" action="[% app_url %]/config/result-summary-options"
        name="result_summary_options" id="result_summary_options">
        <p>
            <b>Lab Section</b>:
            <select name="id" [% on_focus %] >
                <option value="">&nbsp;</option>
    
                [% FOREACH entry IN lab_sections %]
                    [% NEXT UNLESS entry.is_active.match('yes')
                        AND entry.has_result_summary.match('yes') %]
                    [% is_selected = entry.id == c.query.param('id')
                        ? 'selected' : '' %]
                    <option value="[% entry.id %]" [% is_selected %]>
                        [% entry.section_name | html %]
                    </option>
                [% END %]
            </select>
    
            <input type="submit" value="Go" name=".select" class="button" />
        </p>
    </form>

    [% INCLUDE site/snippets/help.tt file = 'resultsummaryoptions' %]
    
    [% IF c.query.param('id') OR dfv_errors %]
        [% PROCESS admin/config/resultsummaryoptions/list.tt %]
    [% END %]
<!-- END [% template.name %] -->

