From 7cab1167dc9c310bdc3fd8b7b751237155c57561 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 5 Mar 2016 22:02:47 +0100 Subject: [PATCH] Continued with "change personal data": - added generic template message_box.tpl - added generic page login_data_saved.xhtml - added missing navigation rules from login_change_foo.xhtml -> login_data_saved.xhtml - added some new language strings - added CSS classes for message box template - changing email address requires you to enter twice your new email address (displaying old is missing) --- nbproject/faces-config.NavData | 12 ++--- .../localization/bundle_de_DE.properties | 5 ++ .../localization/bundle_en_US.properties | 5 ++ web/WEB-INF/faces-config.xml | 51 +++++++++++++------ web/WEB-INF/templates/generic/message_box.tpl | 26 ++++++++++ web/login/login_change_email_address.xhtml | 4 +- web/login/login_data_saved.xhtml | 28 ++++++++++ web/resources/css/cssLayout.css | 12 +++++ 8 files changed, 120 insertions(+), 23 deletions(-) create mode 100644 web/WEB-INF/templates/generic/message_box.tpl create mode 100644 web/login/login_data_saved.xhtml diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index 882010c1..9699a575 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -17,13 +17,13 @@ - + - - + + @@ -31,19 +31,19 @@ - + - + - + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 69786442..7b1a26b4 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -286,3 +286,8 @@ BUTTON_CHANGE_PERSONAL_DATA=Persoenliche Daten aendern #TODO: Please fix German umlaut! LOGIN_CHANGE_PERSONAL_DATA_TITLE=Persoenliche Daten aendern: ERROR_CURRENT_PASSWORD_MISMATCHING=Ihr eingegebenes Passwort entspricht nicht dem aktuell gespeicherten Passwort. +MESSAGE_BOX_TITLE=Hinweis: +MESSAGE_BOX_PARAMETER_MESSAGE_EMPTY=Fehler: Parameter "message" nicht gesetzt. +LOGIN_MESSAGE_DATA_SAVED=Daten wurden gespeichert. +PAGE_TITLE_LOGIN_DATA_SAVED=Ihre Daten wurden gespeichert +CONTENT_TITLE_LOGIN_DATA_SAVED=Daten wurden gespeichert: diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index da62220a..7c3c6e57 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -271,3 +271,8 @@ LOGIN_ENTER_CURRENT_PASSWORD_CONFIRM=Current password: BUTTON_CHANGE_PERSONAL_DATA=Change personal data LOGIN_CHANGE_PERSONAL_DATA_TITLE=Change personal data: ERROR_CURRENT_PASSWORD_MISMATCHING=Your entered password doesn't match the currently stored one. +MESSAGE_BOX_TITLE=Notice: +MESSAGE_BOX_PARAMETER_MESSAGE_EMPTY=Error: Parameter "message" not set. +LOGIN_MESSAGE_DATA_SAVED=Data has been saved. +PAGE_TITLE_LOGIN_DATA_SAVED=Your data has been saved +CONTENT_TITLE_LOGIN_DATA_SAVED=Data has been saved: diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index d5b62294..470ae276 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -173,19 +173,40 @@ /user/show_addressbook.xhtml - - /login/login_edit_user_data.xhtml - - login_change_email_address - /login/login_change_email_address.xhtml - - - login_change_password - /login/login_change_password.xhtml - - - login_change_personal_data - /login/login_change_personal_data.xhtml - - + + /login/login_edit_user_data.xhtml + + login_change_email_address + /login/login_change_email_address.xhtml + + + login_change_password + /login/login_change_password.xhtml + + + login_change_personal_data + /login/login_change_personal_data.xhtml + + + + /login/login_change_password.xhtml + + login_data_saved + /login/login_data_saved.xhtml + + + + /login/login_change_email_address.xhtml + + login_data_saved + /login/login_data_saved.xhtml + + + + /login/login_change_personal_data.xhtml + + login_data_saved + /login/login_data_saved.xhtml + + diff --git a/web/WEB-INF/templates/generic/message_box.tpl b/web/WEB-INF/templates/generic/message_box.tpl new file mode 100644 index 00000000..4b8ecb64 --- /dev/null +++ b/web/WEB-INF/templates/generic/message_box.tpl @@ -0,0 +1,26 @@ + + + + +
+
+ #{msg.MESSAGE_BOX_TITLE} +
+ + +
+ #{message} +
+
+ + +
+ #{msg.MESSAGE_BOX_PARAMETER_MESSAGE_EMPTY} +
+
+
+ diff --git a/web/login/login_change_email_address.xhtml b/web/login/login_change_email_address.xhtml index 1dbb0f27..7550822b 100644 --- a/web/login/login_change_email_address.xhtml +++ b/web/login/login_change_email_address.xhtml @@ -31,7 +31,7 @@
- +
@@ -43,7 +43,7 @@
- +
diff --git a/web/login/login_data_saved.xhtml b/web/login/login_data_saved.xhtml new file mode 100644 index 00000000..d4fa96b4 --- /dev/null +++ b/web/login/login_data_saved.xhtml @@ -0,0 +1,28 @@ + + + + + + #{msg.PAGE_TITLE_LOGIN_DATA_SAVED} + + + #{msg.CONTENT_TITLE_LOGIN_DATA_SAVED} + + + + + + + + + + + + + + diff --git a/web/resources/css/cssLayout.css b/web/resources/css/cssLayout.css index eb81f7e8..00129ea3 100644 --- a/web/resources/css/cssLayout.css +++ b/web/resources/css/cssLayout.css @@ -173,3 +173,15 @@ ul.footer_nav li.footer_copyright { .warnings { color: gold; } + +.message_box { + width: 400px; +} + +.message_header { + background-color: #036fab; +} + +.okay { + color: #00aa00; +} -- 2.39.5