aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/admin/user-form.html
blob: 4a57b05a08264624b3c25fecf13de65e83d0e19e (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
<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="[% 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>
          [% loc('Name:') %] <input type='text' name='name' id='name' value='[% user.name | html %]'>
        </li>
        <li>[% loc('Email:') %] <input type='text' id='email' name='email' value='[% user.email | 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 %]
        </li>
        </select>
      [% 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>