[%# 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 #%] [%# 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 %]