aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/admin/user-form.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/admin/user-form.html')
-rw-r--r--templates/web/base/admin/user-form.html25
1 files changed, 23 insertions, 2 deletions
diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html
index 5bca4171a..c22480011 100644
--- a/templates/web/base/admin/user-form.html
+++ b/templates/web/base/admin/user-form.html
@@ -1,4 +1,4 @@
-<form method="post" action="[% c.uri_for( 'user_edit', user.id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
+<form method="post" id="user_edit" action="[% c.uri_for( 'user_edit', user.id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
<input type="hidden" name="token" value="[% csrf_token %]" >
<input type="hidden" name="submit" value="1" >
@@ -38,7 +38,7 @@
[% loc('Body:') %] <select id='body' name='body'>
<option value=''>[% loc('No body') %]</option>
[% FOR body IN bodies %]
- <option value="[% body.id %]"[% ' selected' IF body.id == user.from_body.id %]>[% body.name %]</option>
+ <option value="[% body.id %]"[% ' selected data-originally-selected' IF body.id == user.from_body.id %]>[% body.name %]</option>
[% END %]
</select>
</li>
@@ -53,6 +53,27 @@
</li>
[% END %]
+ [% IF areas %]
+ <li>
+ <div class="admin-hint">
+ <p>
+ [% loc(
+ "Normal (public) users should not be associated with any <strong>area</strong>.<br>
+ Authorised staff users can be associated with the area in which they operate.")
+ %]
+ </p>
+ </div>
+ [% loc('Area:') %]
+ <select id='area_id' name='area_id' [% 'disabled' UNLESS c.user.has_permission_to('user_assign_areas', user.from_body.id) %]>
+ <option value=''>[% loc('No area') %]</option>
+ [% FOREACH area IN areas %]
+ <option value="[% area.id %]"[% ' selected' IF area.id == user.area_id %]>[% area.name | html %]</option>
+ [% END %]
+ </select>
+ </li>
+ [% END %]
+
+
[% IF c.cobrand.moniker != 'zurich' %]
<li>
<div class="admin-hint">