From f001d1e0b04086660bf1d794e73ad68e7a88af83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 29 Aug 2016 16:38:32 +0200 Subject: [PATCH] Please cherry-pick: - got rid of login_edit_user_data.xhtml, it was redundant anyway - better is to have each "user_change" menu entry in left menu - rewired navigation rules - renamed feature from edit_user_data to change_user_personal_data as this reflects more its purpose - added missing i18n strings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../beans/user/JobsUserWebSessionBean.java | 2 +- .../localization/bundle_de_DE.properties | 3 + .../localization/bundle_en_US.properties | 3 + web/WEB-INF/faces-config.xml | 27 ++++----- .../templates/login/user/user_menu.tpl | 24 ++++++-- web/user/login_change_password.xhtml | 4 +- web/user/login_change_personal_data.xhtml | 4 +- web/user/login_contact_data_saved.xhtml | 4 +- web/user/login_edit_user_data.xhtml | 57 ------------------- 9 files changed, 42 insertions(+), 86 deletions(-) delete mode 100644 web/user/login_edit_user_data.xhtml diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java index 87295f81..9b7ab6d1 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java @@ -538,7 +538,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs } else if (!this.userLoginController.ifCurrentPasswordMatches()) { // Password not matching throw new FaceletException(new UserPasswordMismatchException(this.userLoginController.getLoggedInUser())); - } else if (!this.featureController.isFeatureEnabled("edit_user_data")) { + } else if (!this.featureController.isFeatureEnabled("change_user_personal_data")) { // Editing is not allowed throw new IllegalStateException("User tried to edit personal data."); //NOI18N } diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 04b1b118..79df05bd 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -788,3 +788,6 @@ LOGIN_CHANGE_PASSWORD_LEGEND_TITLE=Das neue Passwort muss zweimal eingegeben wer ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED=Das \u00c4ndern der Email-Adresse ist administrativ deaktiviert worden. ERROR_USER_CHANGE_EMAIL_ADDRESS_ALREADY_QUEUED=Die von Ihnen eingegebene Email-Adresse hatten Sie bereits zum \u00c4ndern eingegeben. Bitte melden Sie sich beim Support. ERROR_USER_EMAIL_ADDRESSES_MISMATCH=Die von Ihnen eingegebenen Email-Adressen stimmen nicht \u00fcberein. +MENU_USER_EDIT_PROFILE_TITLE=Edit profile data +USER_ENTER_NEW_PASSWORD=New password: +USER_ENTER_NEW_PASSWORD_REPEAT=Repeat: diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 96f66c4e..5a41087c 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -789,3 +789,6 @@ LOGIN_CHANGE_PASSWORD_LEGEND_TITLE=The new password must be entered twice to avo ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED=Changing of user's email address is administratively deactivated. ERROR_USER_CHANGE_EMAIL_ADDRESS_ALREADY_QUEUED=You have already entered the email address for changing. Please report to support. ERROR_USER_EMAIL_ADDRESSES_MISMATCH=Your both entered email addresses are mismatching. +MENU_USER_EDIT_PROFILE_TITLE=Profildaten editieren +USER_ENTER_NEW_PASSWORD=Neues Passwort: +USER_ENTER_NEW_PASSWORD_REPEAT=Wiederholen: diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index 825dfcc4..ee336973 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -65,8 +65,16 @@ /guest/user/resend_link.xhtml - login_edit_user_data - /login/login_edit_user_data.xhtml + user_change_email_address + /user/login_change_email_address.xhtml + + + user_change_password + /user/login_change_password.xhtml + + + user_change_personal_data + /user/login_change_personal_data.xhtml user_profile @@ -213,21 +221,6 @@ /user/login_add_addressbook.xhtml - - /user/login_edit_user_data.xhtml - - user_change_email_address - /user/login_change_email_address.xhtml - - - user_change_password - /user/login_change_password.xhtml - - - user_change_personal_data - /user/login_change_personal_data.xhtml - - /user/login_change_password.xhtml diff --git a/web/WEB-INF/templates/login/user/user_menu.tpl b/web/WEB-INF/templates/login/user/user_menu.tpl index cf4958f4..0d478bcb 100644 --- a/web/WEB-INF/templates/login/user/user_menu.tpl +++ b/web/WEB-INF/templates/login/user/user_menu.tpl @@ -27,15 +27,29 @@ - +
    -
  • - -
  • + +
  • + +
  • +
    + + +
  • + +
  • +
    + + +
  • + +
  • +
diff --git a/web/user/login_change_password.xhtml b/web/user/login_change_password.xhtml index cb4b87ac..6bbde0a3 100644 --- a/web/user/login_change_password.xhtml +++ b/web/user/login_change_password.xhtml @@ -38,7 +38,7 @@
- +
@@ -54,7 +54,7 @@
- +
diff --git a/web/user/login_change_personal_data.xhtml b/web/user/login_change_personal_data.xhtml index 17760ecb..f8ec40bb 100644 --- a/web/user/login_change_personal_data.xhtml +++ b/web/user/login_change_personal_data.xhtml @@ -17,7 +17,7 @@ - +
@@ -36,7 +36,7 @@
- + diff --git a/web/user/login_contact_data_saved.xhtml b/web/user/login_contact_data_saved.xhtml index 75d6b04d..1eceebde 100644 --- a/web/user/login_contact_data_saved.xhtml +++ b/web/user/login_contact_data_saved.xhtml @@ -17,7 +17,7 @@
- + @@ -27,7 +27,7 @@ - + diff --git a/web/user/login_edit_user_data.xhtml b/web/user/login_edit_user_data.xhtml deleted file mode 100644 index b634e6ea..00000000 --- a/web/user/login_edit_user_data.xhtml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - -
- -
- -
- -
- -
-
    - -
  • - -
  • -
    - - -
  • - -
  • -
    - - -
  • - -
  • -
    -
-
-
- - - - -
-
- -- 2.39.5