From 3891b63a1eb52076337885487f251a10580a4a85 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 27 Apr 2016 18:50:13 +0200 Subject: Bug 218917 - Allow the login name to be different from the email address Original patch by Gervase Markham r=gerv a=dkl --- .../en/default/account/prefs/account.html.tmpl | 122 ++++++++++++--------- 1 file changed, 71 insertions(+), 51 deletions(-) (limited to 'template/en/default/account/prefs/account.html.tmpl') diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl index ddfc79aaf..81eb61f60 100644 --- a/template/en/default/account/prefs/account.html.tmpl +++ b/template/en/default/account/prefs/account.html.tmpl @@ -7,17 +7,17 @@ #%] [%# INTERFACE: - # realname: string. The user's real name, if any. - # login_change_date: string. The date the email change will be complete. (optional) - # new_login_name: string. The user's new Bugzilla login whilst not confirmed. (optional) + # email_change_date: string. The date the email change will be complete. (optional) + # new_email: string. The user's new email address whilst not confirmed. (optional) #%] [% IF user.authorizer.can_change_password - || (user.authorizer.can_change_email && Param('allowemailchange')) %] + || (user.authorizer.can_change_email && Param('allowemailchange')) + || user.authorizer.can_change_login %] - @@ -27,9 +27,6 @@ - - - [% END %] [% IF user.authorizer.can_change_password %] @@ -37,6 +34,9 @@ @@ -48,55 +48,75 @@ [% END %] - - - - + [% UNLESS Param('use_email_as_login') %] + + + + + [% END %] - [% IF user.authorizer.can_change_email && Param('allowemailchange') %] - [% IF login_change_date %] - [% IF new_login_name %] - - - - - - - - - [% ELSE %] - - - - - - - - - [% END %] + [% IF user.authorizer.can_change_email + && Param('allowemailchange') + && email_change_date %] + [% IF new_email %] + + + + + + + + [% ELSE %] - - + + + + + + [% END %] + [% ELSE %] + + + + [% END %] + + + + + + + + + [% Hook.process('field') %]
- Please enter your existing password to confirm account changes. + + Please enter your current password to confirm any changes in this section.

+ + (Leave empty to keep current password) +
- - - -
+ [% IF user.authorizer.can_change_login %] + + [% ELSE %] + [% user.login FILTER html %] + [% END %] +
Pending email address:[% new_login_name FILTER html %]
Change request expires:[% login_change_date FILTER time %]
Confirmed email address:[% user.login FILTER html %]
Completion date:[% login_change_date FILTER time %]
[% new_email FILTER html %]
[% email_change_date FILTER time %]
- - - - [% user.email FILTER html %]
[% email_change_date FILTER time %]
+ + + [% IF user.authorizer.can_change_email && Param('allowemailchange') %] + + [% ELSE %] + [% user.email FILTER html %] + [% END %] +

+ + + +
-- cgit v1.2.3-24-g4f1b