[%# 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: # # 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/admin.css'] doc_section = "administration.html#user-administration" %] [% PROCESS admin/users/listselectvars.html.tmpl listselectionvalues = listselectionvalues %] [% listselectionurlparams = INCLUDE listselectionurlparams %] [% columns = [{name => 'login_name' heading => 'Edit user...' contentlink => 'editusers.cgi?action=edit&userid=%%userid%%' _ listselectionurlparams } {name => 'realname' heading => 'Real name' } {name => 'last_seen_date' heading => 'Last Login' } {heading => 'Account History' content => 'View' contentlink => 'editusers.cgi?action=activity' _ '&userid=%%userid%%' _ listselectionurlparams } ] %] [% IF Param('allowuserdeletion') && editusers %] [% columns.push({heading => 'Action' content => 'Delete' contentlink => 'editusers.cgi?action=del' _ '&userid=%%userid%%' _ listselectionurlparams } ) %] [% END %] [%# Disabled users are crossed out. Missing realnames are noticed in red. %] [% overrides.login_name = {} %] [% overrides.realname = {} %] [% FOREACH thisuser = users %] [% IF !thisuser.realname %] [%# We cannot pass one class now and one class later. %] [% SET classes = (thisuser.is_enabled ? "warning" : "bz_inactive warning") %] [% overrides.realname.login_name.${thisuser.login_name} = { content => "missing" override_content => 1 class => classes override_class => 1 } %] [% ELSIF !thisuser.is_enabled %] [% overrides.realname.login_name.${thisuser.login_name} = { class => "bz_inactive" override_class => 1 } %] [% END %] [% IF !thisuser.is_enabled %] [% overrides.login_name.login_name.${thisuser.login_name} = { class => "bz_inactive" override_class => 1 } %] [% END %] [% END %]

[% users.size %] user[% "s" UNLESS users.size == 1 %] found.

[% PROCESS admin/table.html.tmpl columns = columns data = users overrides = overrides %]

If you do not wish to modify a user account at this time, you can find other users [% IF editusers %] or add a new user [% END %].

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