summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/users/list.html.tmpl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-03-01 05:41:42 +0100
committertravis%sedsystems.ca <>2005-03-01 05:41:42 +0100
commit2a5d8de847971f7b5476ad6026fcbfcb68813354 (patch)
treea381938485b1265f9bcbd50831a805155a51e504 /template/en/default/admin/users/list.html.tmpl
parent86cdd89c871a0a5fd86892feb0af31d5ab5a088f (diff)
downloadbugzilla-2a5d8de847971f7b5476ad6026fcbfcb68813354.tar.gz
bugzilla-2a5d8de847971f7b5476ad6026fcbfcb68813354.tar.xz
Bug 119485 : Templatise editusers.cgi
Patch by Marc Schumann <wurblzap@gmail.com> r=GavinS, mkanat a=justdave
Diffstat (limited to 'template/en/default/admin/users/list.html.tmpl')
-rw-r--r--template/en/default/admin/users/list.html.tmpl98
1 files changed, 98 insertions, 0 deletions
diff --git a/template/en/default/admin/users/list.html.tmpl b/template/en/default/admin/users/list.html.tmpl
new file mode 100644
index 000000000..9cbd7530d
--- /dev/null
+++ b/template/en/default/admin/users/list.html.tmpl
@@ -0,0 +1,98 @@
+[%# 1.0@bugzilla.org %]
+[%# 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>
+ #%]
+
+[%# INTERFACE:
+ #
+ # listselectionvalues: selection values to recreate the current user list.
+ # editusers: is viewing user member of editusers?
+ # users: list of user information (id, login_name, realname,
+ # disabledtext).
+ #%]
+
+[% PROCESS global/header.html.tmpl
+ title = "Select user"
+ style_urls = ['skins/standard/editusers.css']
+%]
+
+[% PROCESS admin/users/listselectvars.html.tmpl
+ listselectionvalues = listselectionvalues
+%]
+
+[% listselectionurlparams = INCLUDE listselectionurlparams %]
+
+[% columns =
+ [{name => 'login_name'
+ heading => 'Edit user...'
+ contentlink => 'editusers.cgi?action=edit&amp;userid=%%userid%%' _
+ listselectionurlparams
+ allow_html_content => 1
+ }
+ {name => 'realname'
+ heading => 'Real name'
+ allow_html_content => 1
+ }
+ ]
+%]
+
+[% IF Param('allowuserdeletion') && editusers %]
+ [% columns.push({heading => 'Action'
+ content => 'Delete'
+ contentlink => 'editusers.cgi?action=del' _
+ '&amp;userid=%%userid%%' _
+ listselectionurlparams
+ }
+ )
+ %]
+[% END %]
+
+[% FOREACH thisuser = users %]
+ [%# We FILTER html here because we need admin/table.html.tmpl to accept HTML
+ # for styling, so we cannot let admin/table.html.tmpl do the FILTER.
+ #%]
+ [% thisuser.login_name = BLOCK %]
+ [% thisuser.login_name FILTER html %]
+ [% END %]
+ [% IF thisuser.realname %]
+ [% thisuser.realname = BLOCK %]
+ [% thisuser.realname FILTER html %]
+ [% END %]
+ [% ELSE %]
+ [% SET thisuser.realname = '<span style="color: red">missing</span>' %]
+ [% END %]
+ [% IF thisuser.disabledtext %]
+ [% thisuser.login_name = "<span class=\"bz_inactive\">$thisuser.login_name</span>" %]
+ [% thisuser.realname = "<span class=\"bz_inactive\">$thisuser.realname</span>" %]
+ [% END %]
+[% END %]
+
+<p>[% users.size %] user[% "s" UNLESS users.size == 1 %] found.</p>
+
+[% PROCESS admin/table.html.tmpl
+ columns = columns
+ data = users
+%]
+
+<p>
+ If you do not wish to modify a user account at this time, you can
+ <a href="editusers.cgi">find other users</a>
+ [% IF editusers %]
+ or
+ <a href="editusers.cgi?action=add[% INCLUDE listselectionurlparams %]">add
+ a new user</a>
+ [% END %].
+</p>
+
+[% PROCESS global/footer.html.tmpl %]