aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/users/search.html.tmpl
blob: 82e0afda71f3ea83cbcdbf957831d1ec901e0343 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # Contributor(s): Marc Schumann <wurblzap@gmail.com>
  #                 David Lawrence <dkl@redhat.com>
  #%]

[%# INTERFACE:
  #
  # editusers:          is viewing user member of editusers?
  # restrictablegroups: list of groups visible to the user:
  #                     id: group id
  #                     name: group name
  #%]
 

[% PROCESS global/header.html.tmpl
  title = "Search users"
  style_urls = ['skins/standard/editusers.css']
  onload = "document.forms['f'].matchstr.focus()"
  doc_section = "useradmin.html#user-account-search"
%]

[% PROCESS admin/users/listselectvars.html.tmpl
  listselectionvalues = listselectionvalues
%]

<form name="f" method="get" action="editusers.cgi">
<input type="hidden" name="action" value="list" />
<p><label for="matchvalue">List users with</label>
<select id="matchvalue" name="matchvalue">
  <option value="login_name">login name</option>
  <option value="realname">real name</option>
  <option value="userid">user id</option>
</select>
<label for="matchstr">matching</label>
<input size="32" name="matchstr" id="matchstr" />
<select name="matchtype">
  <option value="substr" selected="selected">case-insensitive substring</option>
  <option value="regexp">case-insensitive regexp</option>
  <option value="notregexp">not (case-insensitive regexp)</option>
  <option value="exact">exact (find this user)</option>
</select>
<input type="submit" id="search" value="Search" /></p>

[% IF restrictablegroups.size %]
  <p><input type="checkbox" name="grouprestrict" value="1" id="grouprestrict" />
  <label for="grouprestrict">Restrict to users belonging to group</label>
  <select name="groupid"
          onchange="document.forms['f'].grouprestrict.checked=true">
    [% FOREACH group = restrictablegroups %]
      <option value="[% group.id FILTER html %]">[% group.name FILTER html %]</option>
    [% END %]
  </select></p>
[% END %]
</form>

[% IF editusers %]
  <p>
    You can also <a href="editusers.cgi?action=add">add a new user</a>
    [%- IF listselectionvalues %],
      or
      <a href="editusers.cgi?action=list[% INCLUDE listselectionurlparams %]">show
      the user list again</a>
    [%- END %].
  </p>
[% END %]

[% PROCESS global/footer.html.tmpl %]