  [% META title = 'Admin &raquo; Edit User Group' -%]

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

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

    [% user_groups_dfv_js %]

    <h2 align="center">Edit User Group</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_group/update/[% group.id %]"
        [% user_groups_onsubmit %] name="user_group" id="user_group">

    <table>
        <tr>
            <th>Group name</th>
            <th>Group label</th>
            <th>Description</th>
            <th>Active</th>
		</tr>
		<tr>
            <td>
                <input type="text" size="10" name="group_name" value="[% group.group_name | html %]" />
                [% error_group_name %]
            </td>
            <td>
                <input type="text" size="30" name="group_label" value="[% group.group_label | html %]" />
                [% error_group_label %]
            </td>
            <td>
                <input type="text" size="50" name="group_detail" value="[% group.group_detail | html %]" />
                [% error_group_detail %]
            </td>
			<td>
				<select name="active">
				[% FOREACH option IN ['yes', 'no'] %]
                     <option value="[% option %]" [% 'selected' IF option == group.active %]>
                        [% option %]
                    </option>
			    [% END %]
				</select>
			</td>
            <td>
                [% site.html.submit %]
            </td>
        </tr>
    </table>

    </form>
