[% META title = 'Admin » Edit Request Option' -%]
<!-- BEGIN admin/config/consentoptions/edit.tt -->
[% # PROCESS dumper.tt dump = count %]
[% request_options_dfv_js %]
[% PROCESS admin/options_nav.tt page = 'request-options' %]
<h2 align="center">Edit Request Option</h2>
[% IF dfv_errors %]
<dl>
<dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
[% IF error_option_name %]
<dd>Option name [% error_option_name %]</dd>[% END %]
[% IF error_option_label %]
<dd>Option label [% error_option_label %]</dd>[% END %]
[% IF error_is_active %]
<dd>Active [% error_is_active %]</dd>[% END %]
</dl>
[% END %]
<form method="post" action="[% app_url %]/config/request-options/update/[% data.id %]"
[% request_options_onsubmit %] name="_consent_options" id="request_options">
<table>
<tr>
<th [% IF error_option_name %]class="error"[% END %]>Option name</th>
<th [% IF error_option_label %]class="error"[% END %]>Option label</th>
<th [% IF error_is_active %]class="error"[% END %]>Active</th>
</tr>
<tr>
<td>
<input type="text" name="option_name" size="20" readonly
value="[% data.option_name | html %]" />
</td>
<td>
<input type="text" name="option_label" size="20"
value="[% data.option_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 -->