[% META title = 'Admin » Edit Context Warning' -%]
<!-- BEGIN admin/config/diagnosiscontextwarnings/edit_context_warning.tt -->
[% # PROCESS dumper.tt dump = data %]
[% PROCESS admin/request_nav.tt page = 'diagnostic-categories' %]
<h2 align="center">Edit Context Warning</h2>
<p class="warning">WARNING:
Change to the description will affect all diagnoses currently allocated
this entry. To create a new context warning, use the form on previous page.
</p>
[% IF dfv_errors %]
<dl>
<dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
[% IF error_description %]
<dd>Description [% error_description %]</dd>[% END %]
</dl>
[% END %]
<form method="post" action="[% app_url
%]/config/diagnosis-context-warnings/update_context_warning/[% data.id %]"
name="context_warning" id="context_warning">
<table>
<tr>
<th [% IF error_description %]class="error"[% END %]>Description</th>
<th [% IF error_is_active %]class="error"[% END %]>Active</th>
</tr>
<tr>
<td>
<input type="text" name="description" size="100"
value="[% data.description | html %]" />
</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/diagnosiscontextwarnings/edit_context_warning.tt -->