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

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

  [% consent_options_dfv_js %]

	[% PROCESS admin/options_nav.tt page = 'consent-options' %]
	
  <h2 align="center">Edit Consent Option</h2>

    [% IF dfv_errors %]
    <dl>
        <dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
        [% IF error_consent_name %]
            <dd>Consent name [% error_consent_name %]</dd>[% END %]
        [% IF error_consent_label %]
            <dd>Consent label [% error_consent_label %]</dd>[% END %]
        [% IF error_is_active %]
            <dd>Active [% error_is_active %]</dd>[% END %]
    </dl>
    [% END %]
    
    <form method="post" action="[% app_url %]/config/consent-options/update/[% data.id %]"
        [% consent_options_onsubmit %] name="_consent_options" id="consent_options">

    <table>
        <tr>
            <th [% IF error_consent_name %]class="error"[% END %]>Consent name</th>
            <th [% IF error_consent_label %]class="error"[% END %]>Consent label</th>
			<th [% IF error_is_active %]class="error"[% END %]>Active</th>
        </tr>

        <tr>
            <td>
                <input type="text" name="consent_name" size="20"
                    value="[% data.consent_name | html %]" />
             </td>
            <td>
                <input type="text" name="consent_label" size="20"
                    value="[% data.consent_label | 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 -->
