  [% META title = 'Admin &raquo; Request Audit &raquo; Category' -%]

  [% request_audit_categories_dfv_js %]

	[% PROCESS admin/request_nav.tt page = 'audit-categories' %]
	
  <h2 align="center">Edit Request Audit Category</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_active %]
            <dd>Active [% error_active %]</dd>[% END %]
    </dl>
    [% END %]

    <form method="post" action="[% app_url %]/config/request-audit-categories/update/[% data.id %]"
        [% diagnosis_onsubmit %] name="_request_category" id="_request_category">

    <table>
        <tr>
            <th [% IF error_description %]class="error"[% END %]>Description</th>
			<th [% IF error_active %]class="error"[% END %]>Active</th>
        </tr>

        <tr>
            <td>
                <input type="text" name="description" size="40"
                    value="[% data.description | html %]" />
             </td>
			<td>
				<select name="active">
				[% FOREACH option IN ['yes', 'no'] %]
                     <option value="[% option %]" [% 'selected' IF option == data.active %]>
                        [% option %]
                    </option>
			    [% END %]
				</select>
			</td>

             <td>
                [% site.html.submit %]
            </td>
        </tr>
    </table>

    </form>

    <p>[% site.html.back_button %]</p>
