From: Roland Häder Date: Mon, 5 Sep 2016 15:10:18 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9fecd6fda6671d5fb117f9a610c7ca253d27b3a9;p=jjobs-war.git Please cherry-pick: - added feature switch "user_registraion_in_index" which controls whether the registration page is in index (true) or own page (false). - please put your index stuff in guest_index.tpl for now - maybe later this will be changed to a datbase-driven CMS? Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 6c3c7458..600d4c7d 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -794,3 +794,4 @@ USER_ENTER_NEW_PASSWORD_REPEAT=Wiederholen: BUTTON_USER_CHANGE_PASSWORD=Passwort \u00e4ndern ADMIN_LINK_SHOW_CONTACT_DATA=Kontaktdaten anzeigen ERROR_USER_PASSWORD_TO_WEAK=Das eingegebene Passwort ist zu schwach. Bitte geben Sie Bustaben, Zahlen und Sonderzeichen ein, um ein sicheres Passwort zu erstellen. +ERROR_GUEST_REGISTRATION_IN_INDEX_ENABLED=Fehler: Anmeldeseite ist die Eingangsseite, nicht die Anmeldeseite. diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index c7a06137..65b31316 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -795,3 +795,4 @@ USER_ENTER_NEW_PASSWORD_REPEAT=Repeat: BUTTON_USER_CHANGE_PASSWORD=Change password ADMIN_LINK_SHOW_CONTACT_DATA=Show contact data ERROR_USER_PASSWORD_TO_WEAK=Your entered password is to weak. Please enter letters, numbers and special characters to create a secure password. +ERROR_GUEST_REGISTRATION_IN_INDEX_ENABLED=Error: Registration page is index, not the registration page. diff --git a/web/WEB-INF/templates/guest/guest_index.tpl b/web/WEB-INF/templates/guest/guest_index.tpl new file mode 100644 index 00000000..50339f55 --- /dev/null +++ b/web/WEB-INF/templates/guest/guest_index.tpl @@ -0,0 +1,9 @@ + + + + Here goes your content. + diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index eb42f2d3..a8025bfc 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -127,6 +127,11 @@ min_user_password_score 50 + + Whether user registration page is in index or own page. + is_feature_user_registraion_in_index_enabled + false + Faces Servlet javax.faces.webapp.FacesServlet diff --git a/web/guest/user/user_register.xhtml b/web/guest/user/user_register.xhtml index 340b6981..1bd6dd9b 100644 --- a/web/guest/user/user_register.xhtml +++ b/web/guest/user/user_register.xhtml @@ -16,7 +16,7 @@ - +
@@ -46,5 +46,12 @@ + + + + + + + diff --git a/web/index.xhtml b/web/index.xhtml index 9b7f7cde..2d926740 100644 --- a/web/index.xhtml +++ b/web/index.xhtml @@ -16,18 +16,19 @@ - -
- -
- -
- -
+ +
+ + +
+ + + +