diff options
author | Max Magorsch <max@magorsch.de> | 2019-12-23 04:07:14 +0100 |
---|---|---|
committer | Max Magorsch <max@magorsch.de> | 2019-12-23 04:07:14 +0100 |
commit | 9c74d6f0467f87407da28ef85e79733eeca35188 (patch) | |
tree | 2d8575d79122bc5fd1defca27d6bade58afea88e /template/en/custom/admin/users/search.html.tmpl | |
parent | Add docker files for development purposes (diff) | |
download | bugzilla-dev/tyrian-theme.tar.gz bugzilla-dev/tyrian-theme.tar.bz2 bugzilla-dev/tyrian-theme.zip |
Add a first draft of a tyrian based appearancedev/tyrian-theme
The bugzilla templates have been changed to match the tyrian theme. The
second customization method from [1] has been choosen, as hooks aren't
sufficient for the changes that are needed to make it work. Meaning:
A new 'custom' folder is present in the 'template' directory. The
custom directory contains templates which override the templates in
the default directory.
This is a first draft and not covering everything yet. There are still
some parts / pages that need to be migrated to the new theme. However,
this can easily be done by adding new templates in the 'custom' folder
which will override the templates in the default folder by default.
[1] https://bugzilla.readthedocs.io/en/5.0/integrating/templates.html
Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'template/en/custom/admin/users/search.html.tmpl')
-rw-r--r-- | template/en/custom/admin/users/search.html.tmpl | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/template/en/custom/admin/users/search.html.tmpl b/template/en/custom/admin/users/search.html.tmpl new file mode 100644 index 000000000..39b8da0b7 --- /dev/null +++ b/template/en/custom/admin/users/search.html.tmpl @@ -0,0 +1,83 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[%# 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/admin.css'] + doc_section = "administering/users.html" +%] + +[% 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" class="form-control selectwidthauto"> + <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" autofocus> +<select name="matchtype" class="form-control selectwidthauto"> + <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" class="btn btn-primary" 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" class="form-control selectwidthauto"> + [% FOREACH group = restrictablegroups %] + <option value="[% group.id FILTER html %]">[% group.name FILTER html %]</option> + [% END %] + </select></p> +[% END %] + +<p> + Restrict search to + <select name="is_enabled" class="form-control selectwidthauto"> + <option value="2">All</option> + <option value="1" selected>Enabled</option> + <option value="0">Disabled</option> + </select> + users. +</p> + +[% Hook.process('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 %] |