[% META title = 'Admin » Edit Report Error Code' -%]
<!-- BEGIN admin/config/reporterrorcodes/edit.tt -->
[% # PROCESS dumper.tt dump = c.stash.errs %]
[% error_codes_dfv_js %]
[% PROCESS admin/misc_nav.tt page = 'report-error-codes' %]
<h2 align="center">Edit Report Error Code Details</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/report-error-codes/update/[% data.id %]"
[% error_codes_onsubmit %] name="error_code" id="error_code">
<input type="hidden" name="code" value="[% data.code %]" />
<table>
<tr>
<th>Code</th>
<th [% IF error_description %]class="error"[% END %]>Description</th>
<th [% IF error_active %]class="error"[% END %]>Active</th>
</tr>
<tr>
<td>
<input type="text" size="5" id="code" [% site.html.disabled %]
value="[% data.code | upper %]" />
</td>
<td>
<input type="text" name="description" size="70" value="[% data.description %]" />
</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>
<!-- END admin/config/reporterrorcodes/edit.tt -->