From ef96ae157223b3309f7703798b32b0b386b2edff Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 10 Mar 2015 13:07:56 +0800 Subject: Bug 1003701: add the ability for users to prevent review/feedback/needinfo requests --- .../en/default/account/prefs/account.html.tmpl | 129 ++++++++++++--------- template/en/default/account/prefs/email.html.tmpl | 4 +- 2 files changed, 74 insertions(+), 59 deletions(-) (limited to 'template') diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl index 95819e451..0c8f0807f 100644 --- a/template/en/default/account/prefs/account.html.tmpl +++ b/template/en/default/account/prefs/account.html.tmpl @@ -24,83 +24,98 @@ # new_login_name: string. The user's new Bugzilla login whilst not confirmed. (optional) #%] +[%# BMO - add hook for displaying user-profile link %] +[% Hook.process('start') %] + - - - - + - - - + + [%# BMO - moved field hook from end of file to here to group with other account fields %] + [% Hook.process('field') %] + + [% SET can_change = [] %] [% IF user.authorizer.can_change_password %] + [% can_change.push('password') %] + [% END %] + [% IF user.authorizer.can_change_email && Param('allowemailchange') %] + [% can_change.push('email address') %] + [% END %] + + [% IF can_change.size %] - - + + + + - - + - [% END %] + [% IF user.authorizer.can_change_password %] + + + + - - - - + + + + + [% END %] - [% IF user.authorizer.can_change_email && Param('allowemailchange') %] - [% IF login_change_date %] - [% IF new_login_name %] - - - - - - - - + [% IF user.authorizer.can_change_email && Param('allowemailchange') %] + [% IF login_change_date %] + [% IF new_login_name %] + + + + + + + + + [% ELSE %] + + + + + + + + + [% END %] [% ELSE %] - - - - - - + + [% END %] - [% ELSE %] - - - - [% END %] + + + + [% END %] - [% Hook.process('field') %] -
- Please enter your existing password to confirm account changes. -
Password:Your real name: - - + + optional, but encouraged

New password: - +
+ Your current password is required to + confirm [% can_change.join(' or ') FILTER html %] + changes.
Confirm new password:Current password: - + +
New password: + +
Your real name (optional, but encouraged): - -
Confirm new password: + +
Pending email address:[% new_login_name FILTER html %]
Change request expires:[% login_change_date FILTER time %]
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 %]
Confirmed email address:[% user.login FILTER html %]
Completion date:[% login_change_date FILTER time %]New email address: + +
- [% IF Param('emailsuffix') %] - New login: - [% ELSE %] - New email address: - [% END %] - - -

diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl index ffb153785..80185b503 100644 --- a/template/en/default/account/prefs/email.html.tmpl +++ b/template/en/default/account/prefs/email.html.tmpl @@ -60,8 +60,8 @@ function SetCheckboxes(setting) { } } -document.write('\n'); -document.write('\n'); +document.write('\n'); +document.write('\n'); // --> -- cgit v1.2.3-24-g4f1b