RSS Git Download  Clone
Raw Blame History
  [% META title = 'Admin » Edit User Location' -%]

  [% # PROCESS dumper.tt dump = screening_list.size %]

  [% PROCESS admin/user_nav.tt page = 'user_location' %]

  [% user_locations_dfv_js %]

	<h2 align="center">Edit User Location</h2>

    [% IF dfv_errors %]
        <p class="error">[% c.cfg('msg').dfv_errors %]</p>
    [% END %]

    <p>[% site.html.back_button %]</p>

    <form method="post" action="[% app_url %]/admin/user_location/update/[% location.id %]"
        [% user_locations_onsubmit %] name="user_location" id="user_location">

    <table>
        <tr>
            <th>Location name</th>
			<th>Region code</th>
<!--
            <th>E-mail contact</th>
-->
            <th>Active</th>
		</tr>
		<tr>
            <td>
                <input type="text" size="30" name="location_name" value="[% location.location_name | html %]" />
                [% error_location_name %]
            </td>
            <td>
                <input type="text" size="5" name="region_code" value="[% location.region_code | html %]" />
                [% error_region_code %]
            </td>
<!--
            <td>
                <input type="text" size="50" name="email_contact" value="[% # location.email_contact | html %]" />
                [% error_email_contact %]
            </td>
-->
			<td>
				<select name="active">
				[% FOREACH option IN ['yes', 'no'] %]
                     <option value="[% option %]" [% 'selected' IF option == location.active %]>
                        [% option %]
                    </option>
			    [% END %]
				</select>
			</td>
            <td>
                [% site.html.submit %]
            </td>
        </tr>
    </table>

    </form>