  [% META title = 'Admin &raquo; Edit Request Status Option' -%]
<!-- BEGIN admin/config/consentoptions/edit.tt -->

  [% # PROCESS dumper.tt dump = count %]

  [% status_options_dfv_js %]

	[% PROCESS admin/options_nav.tt page = 'status-options' %]
	
  <h2 align="center">Edit Request Status 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_is_active %]
            <dd>Active [% error_is_active %]</dd>[% END %]
    </dl>
    [% END %]
    
    <form method="post" action="[% app_url %]/config/status-options/update/[% data.id %]"
        [% status_options_onsubmit %] name="_status_options" id="status_options">

    <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="hidden" name="description" value="[% data.description | html %]" />
                <input type="text" name="_description" size="20" [% site.html.disabled %]
                    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/consentoptions/edit.tt -->
