aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/admin/user-form.html41
-rw-r--r--templates/web/base/report/update.html2
2 files changed, 31 insertions, 12 deletions
diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html
index 9a2c0b9e2..63d4858ab 100644
--- a/templates/web/base/admin/user-form.html
+++ b/templates/web/base/admin/user-form.html
@@ -51,23 +51,27 @@
%]
</p>
</div>
- [% loc('Body:') %] <select class="form-control" id='body' name='body'>
+ <label for="body">[% loc('Body:') %]</label>
+ <select class="form-control" id='body' name='body'>
<option value=''>[% loc('No body') %]</option>
[% FOR body IN bodies %]
<option value="[% body.id %]"[% ' selected data-originally-selected' IF body.id == user.from_body.id %]>[% body.name %]</option>
[% END %]
</select>
</li>
- [% ELSE %]
- <li>
+ [% ELSE %]
+ <li>
<div class="admin-hint">
<p>
[% loc("Staff users have permission to log in to the admin.") %]
</p>
</div>
- [% loc('Staff:') %] <input type="checkbox" id="body" name="body" value="[% c.user.from_body.id %]" [% user.from_body.id == c.user.from_body.id ? ' checked' : '' %] [% 'disabled' UNLESS c.user.has_body_permission_to('user_assign_body') %]>
+ <label>
+ [% loc('Staff:') %]
+ <input type="checkbox" id="body" name="body" value="[% c.user.from_body.id %]" [% user.from_body.id == c.user.from_body.id ? ' checked' : '' %] [% 'disabled' UNLESS c.user.has_body_permission_to('user_assign_body') %]>
+ </label>
</li>
- [% END %]
+ [% END %]
[% IF areas AND c.cobrand.moniker != 'zurich' %]
<li>
@@ -79,7 +83,7 @@
%]
</p>
</div>
- [% loc('Area:') %]
+ <label for="area_id">[% loc('Area:') %]</label>
<select class="form-control" 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 %]
@@ -115,7 +119,10 @@
</p>
</div>
- [% loc('Flagged:') %] <input type="checkbox" id="flagged" name="flagged"[% user.flagged ? ' checked' : '' %]>
+ <label>
+ [% loc('Flagged:') %]
+ <input type="checkbox" id="flagged" name="flagged"[% user.flagged ? ' checked' : '' %]>
+ </label>
</li>
[% UNLESS user.is_superuser %]
@@ -126,8 +133,8 @@
</p>
</div>
[% IF c.user.is_superuser %]
- [% loc('Trusted by bodies:') %]<br />
- <select class="form-control js-multiple" id='body' name='trusted_bodies' multiple>
+ <label for="trusted_bodies">[% loc('Trusted by bodies:') %]</label>
+ <select class="form-control js-multiple" id='trusted_bodies' name='trusted_bodies' multiple>
[% FOR body IN bodies %]
<option value="[% body.id %]"[% ' selected' IF user.has_permission_to('trusted', body.id) %]>[% body.name %]</option>
[% END %]
@@ -148,7 +155,10 @@
[% loc("Superusers have permission to perform <strong>all actions</strong> within the admin.") %]
</p>
</div>
- [% loc('Superuser:') %] <input type="checkbox" id="is_superuser" name="is_superuser"[% user.is_superuser ? ' checked' : '' %]>
+ <label>
+ [% loc('Superuser:') %]
+ <input type="checkbox" id="is_superuser" name="is_superuser"[% user.is_superuser ? ' checked' : '' %]>
+ </label>
</li>
[% END %]
@@ -185,5 +195,14 @@
[% END %]
[% TRY %][% INCLUDE 'admin/user-form-extra-fields.html' %][% CATCH file %][% END %]
</ul>
- <input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]" >
+ <p>
+ <input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]" >
+ </p>
+ [% IF user AND NOT user.from_body %]
+ <ul class="no-bullets danger-zone">
+ <li><input class="btn-danger" type="submit" name="anon_everywhere" value="[% loc('Make anonymous on all reports and updates') %]">
+ <li><input class="btn-danger" type="submit" name="hide_everywhere" value="[% loc('Hide all reports and updates') %]">
+ </ul>
+ [% END %]
+
</form>
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 6dca226fe..100deb1ea 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -69,7 +69,7 @@
<label for="moderation_reason">[% loc('Moderation reason:') %]</label>
<input type="text" class="form-control" name="moderation_reason"
placeholder="[% loc('Describe why you are moderating this') %]">
- <input type="submit" class="red-btn" value="[% loc('Save changes') %]">
+ <input type="submit" class="green-btn" value="[% loc('Save changes') %]">
<input type="button" class="btn cancel" value="[% loc('Discard changes') %]">
</div>
</form>