blob: d6456f3d96d51bfb33857ad2d79f0afeb392e7b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<form method="post" 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" >
[% IF c.cobrand.moniker == 'zurich' AND field_errors.email %]
<p class='error'>[% field_errors.email %]</p>
[% END %]
<ul class="no-bullets">
<li>
<div class="admin-hint">
<p>
[% loc(
"The user's <strong>name</strong> is displayed publicly on reports that have not been marked <em>anonymous</em>.
Names are not necessarily unique.")
%]
</p>
</div>
<label for="name">[% loc('Name:') %]</label>
<input type='text' name='name' id='name' value='[% user.name | html %]'>
</li>
<li><label for="email">[% loc('Email:') %]</label>
<input type='text' id='email' name='email' value='[% user.email | html %]'></li>
<li><label for="phone">[% loc('Phone:') %]</label>
<input type='text' id='phone' name='phone' value='[% user.phone | html %]'></li>
<li>
<div class="admin-hint">
<p>
[% loc(
"Normal (public) users should not be associated with any <strong>body</strong>.<br>
Authorised staff users can be associated with the body they represent.<br>
Depending on the implementation, staff users may have access to the dashboard (summary of
activity across their body), the ability to hide reports or set special report statuses.")
%]
</p>
</div>
[% 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>
[% END %]
</select>
[% IF user.from_body AND user.has_permission_to('moderate', user.from_body.id) %]*[% END %]
</li>
[% IF c.cobrand.moniker != 'zurich' %]
<li>
<div class="admin-hint">
<p>
[% loc("Mark users whose behaviour you want to keep a check on as <strong>flagged</strong>.") %]
<br>
[% tprintf(loc("Flagged users are listed on the <a href='%s'>flagged</a> page."), c.uri_for( 'flagged' )) %]
<br>
[% loc("You can add an abusive user's email to the abuse list, which automatically hides (and never sends) reports they create.") %]
</p>
</div>
[% loc('Flagged:') %] <input type="checkbox" id="flagged" name="flagged"[% user.flagged ? ' checked' : '' %]>
</li>
[% END %]
</ul>
<input type="submit" name="Submit changes" value="[% loc('Submit changes') %]" >
</form>
|