[% META title = 'Admin » Edit Screen Category' -%]
<!-- BEGIN [% template.name %] -->
[% PROCESS admin/system_nav.tt page = 'screen_category' %]
[% screen_categories_dfv_js %]
<h2 align="center">Edit Screen Category</h2>
[% IF dfv_errors %]
<dl>
<dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
[% IF error_name %]
<dd>Name [% error_name %]</dd>[% END %]
[% IF error_is_active %]
<dd>Active [% error_is_active %]</dd>[% END %]
</dl>
[% END %]
<p>[% site.html.back_button %]</p>
<form method="post" action="[% app_url %]/admin/screen_category/update/[% data.id %]"
[% screening_terms_onsubmit %] name="screen_category" id="screen_category">
<table>
<tr>
<th [% IF error_name %]class="error"[% END %]>Description</th>
<th [% IF error_is_active %]class="error"[% END %]>Active</th>
</tr>
<tr>
<td>
<input type="text" size="30" name="name" value="[% category.name | html %]" />
</td>
<td>
<select name="is_active">
[% FOREACH option IN ['yes', 'no'] %]
<option value="[% option %]" [% 'selected' IF option == category.is_active %]>
[% option %]
</option>
[% END %]
</select>
</td>
<td>
[% site.html.submit %]
</td>
</tr>
</table>
</form>
<!-- END [% template.name %] -->