From 3db2f716e7fed74153115336495ef4588881ac27 Mon Sep 17 00:00:00 2001 From: JR Maitre Date: Tue, 7 Nov 2017 13:05:40 -0800 Subject: [PATCH] UI-2952: hide pw from user creation/update if wl field is set --- i18n/en-US.json | 2 +- views/users-changePassword.html | 36 ++++++++++++++++++--------------- views/users-creation.html | 12 ++++++----- 3 files changed, 28 insertions(+), 22 deletions(-) diff --git a/i18n/en-US.json b/i18n/en-US.json index 19b5af9..adebb02 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -441,7 +441,7 @@ "password": "Password", "confirmPassword": "Re-type Password", "passwordPlaceholder": "Password (Min. 6 characters)", - "title": "Update Email and password", + "title": "Update Credentials", "username": "User's Email address", "resetPassword": { "linkTitle": "here", diff --git a/views/users-changePassword.html b/views/users-changePassword.html index 4dbc825..2296c34 100644 --- a/views/users-changePassword.html +++ b/views/users-changePassword.html @@ -7,25 +7,29 @@ -
- -
- + {{#unless _whitelabel.hide_user_passwords}} +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
+ {{/unless}} - {{#monsterText}} - {{i18n.users.dialogChangePassword.help}} -

- {{i18n.users.dialogChangePassword.resetPassword.text}} - {{i18n.users.dialogChangePassword.resetPassword.linkTitle}}. - {{/monsterText}} + {{#unless _whitelabel.hide_user_passwords}} + {{#monsterText}} + {{i18n.users.dialogChangePassword.help}} +

+ {{i18n.users.dialogChangePassword.resetPassword.text}} + {{i18n.users.dialogChangePassword.resetPassword.linkTitle}}. + {{/monsterText}} + {{/unless}}
diff --git a/views/users-creation.html b/views/users-creation.html index 2d4da68..333bc15 100644 --- a/views/users-creation.html +++ b/views/users-creation.html @@ -16,12 +16,14 @@
-
- -
- + {{#unless _whitelabel.hide_user_passwords}} +
+ +
+ +
-
+ {{/unless}}