1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# Contributor(s): Marc Schumann <wurblzap@gmail.com>
15
# David Lawrence <dkl@redhat.com>
20
# editusers: is viewing user member of editusers?
21
# restrictablegroups: list of groups visible to the user:
27
[% PROCESS global/header.html.tmpl
28
title = "Search users"
29
style_urls = ['skins/standard/editusers.css']
30
onload = "document.forms['f'].matchstr.focus()"
33
[% PROCESS admin/users/listselectvars.html.tmpl
34
listselectionvalues = listselectionvalues
37
<form name="f" method="get" action="editusers.cgi">
38
<input type="hidden" name="action" value="list" />
39
<p><label for="matchvalue">List users with</label>
40
<select id="matchvalue" name="matchvalue">
41
<option value="login_name">login name</option>
42
<option value="realname">real name</option>
43
<option value="userid">user id</option>
45
<label for="matchstr">matching</label>
46
<input size="32" name="matchstr" id="matchstr" />
47
<select name="matchtype">
48
<option value="substr" selected="selected">case-insensitive substring</option>
49
<option value="regexp">case-insensitive regexp</option>
50
<option value="notregexp">not (case-insensitive regexp)</option>
51
<option value="exact">exact (find this user)</option>
53
<input type="submit" id="search" value="Search" /></p>
55
[% IF restrictablegroups.size %]
56
<p><input type="checkbox" name="grouprestrict" value="1" id="grouprestrict" />
57
<label for="grouprestrict">Restrict to users belonging to group</label>
58
<select name="groupid"
59
onchange="document.forms['f'].grouprestrict.checked=true">
60
[% FOREACH group = restrictablegroups %]
61
<option value="[% group.id FILTER html %]">[% group.name FILTER html %]</option>
69
You can also <a href="editusers.cgi?action=add">add a new user</a>
70
[%- IF listselectionvalues %],
72
<a href="editusers.cgi?action=list[% INCLUDE listselectionurlparams %]">show
73
the user list again</a>
78
[% PROCESS global/footer.html.tmpl %]