[% META title = 'Admin » Edit Lab Section' -%]
[% # PROCESS dumper.tt dump = section %]
[% PROCESS admin/lab_test_nav.tt page = 'lab_section' %]
[% lab_sections_dfv_js %]
<h2 align="center">Edit Lab Section</h2>
[% IF dfv_errors %]
<p class="error">[% c.cfg('msg').dfv_errors %]</p>
[% END %]
<p>[% site.html.back_button %]</p>
<form method="post" action="[% app_url %]/admin/lab_section/update/[% section.id %]"
[% lab_sections_onsubmit %] name="lab_section" id="lab_section">
<table>
<tr>
<td class="label">Description:</td>
<td>
<input type="text" name="section_name" size="30" value="[% section.section_name | html %]" />
[% error_section_name %]
</td>
</tr>
<tr>
<td class="label">Results summary:</td>
<td>
<select name="has_result_summary">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]" [% 'selected' IF option == section.has_result_summary %]>
[% option %]
</option>
[% END %]
</select>
[% error_has_result_summary %]
</td>
</tr>
<tr>
<td class="label">Section notes:</td>
<td>
<select name="has_section_notes">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]" [% 'selected' IF option == section.has_section_notes %]>
[% option %]
</option>
[% END %]
</select>
[% error_has_section_notes %]
</td>
</tr>
<tr>
<td class="label">Block sign out:</td>
<td>
<select name="has_test_sign_out">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]" [% 'selected' IF option == section.has_test_sign_out %]>
[% option %]
</option>
[% END %]
</select>
[% error_has_test_sign_out %]
</td>
</tr>
<tr>
<td class="label">Results import:</td>
<td>
<select name="has_results_import">
[% FOREACH option IN ['no', 'yes'] # default to no %]
<option value="[% option %]" [% 'selected' IF option == section.has_results_import %]>
[% option %]
</option>
[% END %]
</select>
[% error_has_results_import %]
</td>
</tr>
<tr>
<td class="label">Remote system:</td>
<td class="content">
<select name="has_foreign_id">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]"
[% 'selected' IF option == section.has_foreign_id %]>
[% option %]
</option>
[% END %]
</select>
[% error_has_foreign_id %]
</td>
</tr>
<tr>
<td class="label">Active:</td>
<td>
<select name="is_active">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]" [% 'selected' IF option == section.is_active %]>
[% option %]
</option>
[% END %]
</select>
[% error_is_active %]
</td>
</tr>
<tr>
<td colspan="2" align="center">
[% site.html.submit %]
</td>
</tr>
</table>
</form>