[%# 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: # # editform: is this an edit form? (It's a create form otherwise) # editusers: is viewing user member of editusers? # otheruser: Bugzilla::User object of user to edit #%] [% IF editusers %] [% IF editform %] [% IF !otheruser.in_group('bz_sudo_protect') %]
Impersonate this user [% END %] [% END %] [% ELSE %] [% otheruser.login FILTER html %] [% END %] [% IF default_authorizer.extern_id_used %] [% IF editusers %] [% ELSE %] [% otheruser.extern_id FILTER html %] [% END %] [% END %] [% IF editusers %] [% ELSE %] [% otheruser.name FILTER html %] [% END %] [%# XXX This condition (can_change_password) will cause a problem # if we ever have a login system that can create accounts through # createaccount.cgi but can't change passwords. #%] [% IF editusers %] [% IF user.authorizer.can_change_password %] [% IF editform %]
(Enter new password to change.) [% END %] [% END %] (This affects [% terms.bug %]mail and whinemail, not password-reset or other non-[% terms.bug %]-related emails) [% INCLUDE global/textarea.html.tmpl name = 'disabledtext' id = 'disabledtext' minrows = 2 maxrows = 10 defaultrows = 10 cols = 60 defaultcontent = otheruser.disabledtext onchange = "userDisabledTextOnChange(this);" %]
(If non-empty, then the account will be disabled, and this text should explain why.) [% END %]