<!-- BEGIN admin/config/resultsummaryoptions.edit.tt -->
[% META title = 'Admin » Edit Result Summary Option' -%]
[% # PROCESS dumper.tt dump = count %]
[% result_summary_options_dfv_js %]
[% PROCESS admin/misc_nav.tt page = 'result-summary-options' %]
<h2 align="center">Edit Result Summary Option</h2>
[% IF dfv_errors %]
<dl>
<dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
[% IF error_description %]
<dd>Description [% error_description %]</dd>[% END %]
[% IF error_lab_section_id %]
<dd>Lab section [% error_lab_section_id %]</dd>[% END %]
</dl>
[% END %]
<form method="post" action="[% app_url %]/config/result-summary-options/update/[% data.id %]"
[% result_summary_options_onsubmit %] name="result-summary-options" id="result-summary-options">
<table>
<tr>
<th [% IF error_description %]class="error"[% END %]>Description</th>
<th [% IF error_lab_section_id %]class="error"[% END %]>Lab section</th>
<th [% IF error_is_active %]class="error"[% END %]>Active</th>
</tr>
<tr>
<td>
<input type="text" name="description" size="50" value="[% data.description | html %]" />
</td>
<td>
<select name="lab_section_id">
[% FOREACH entry IN lab_sections %]
[% NEXT UNLESS entry.has_result_summary.match('yes') %]
<option value="[% entry.id %]" [% 'selected' IF entry.id == data.lab_section_id %]>
[% entry.section_name %]
</option>
[% END %]
</select>
</td>
<td>
<select name="is_active">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]" [% 'selected' IF option == data.is_active %]>
[% option %]
</option>
[% END %]
</select>
</td>
<td>
[% site.html.submit %]
</td>
</tr>
</table>
</form>
<p>[% site.html.back_button %]</p>
<!-- END admin/config/resultsummaryoptions.edit.tt -->