RSS Git Download  Clone
Raw Blame History
  [% META title = 'Admin » Result Data Types » Edit' -%]

<!-- BEGIN admin/config/resultdatatypes/edit.tt -->
  [% # PROCESS dumper.tt dump = c.stash.errs %]

	[% result_data_types_dfv_js %]

	[% # PROCESS admin/misc_nav.tt page = 'report-error-codes' %]

  <h2 align="center">Edit Result Data Type</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/result-data-types/update/[% data.id %]"
		  [% result_data_types_onsubmit %] name="data-type" id="data-type">
    <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="text" name="description" size="20" value="[% data.description %]" />
             </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/resultdatatypes/edit.tt -->