]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 5 Sep 2016 15:10:18 +0000 (17:10 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 5 Sep 2016 20:07:40 +0000 (22:07 +0200)
- 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 <roland@mxchange.org>
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/templates/guest/guest_index.tpl [new file with mode: 0644]
web/WEB-INF/web.xml
web/guest/user/user_register.xhtml
web/index.xhtml

index 6c3c745840dd9506473f10e9cba191a4c6f51dcd..600d4c7d53cc622ef88973205255f49d41da3836 100644 (file)
@@ -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.
index c7a06137870a8f560899bbc39ad2272ec1f49345..65b31316fe980f5376f2ae3bd81493ff25ba97e3 100644 (file)
@@ -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 (file)
index 0000000..50339f5
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+
+       Here goes your content.
+</ui:composition>
index eb42f2d33cb02e779d5f6ace1ad9a1cdbd9e42b4..a8025bfca5dc8210d40cee40d19c1efaf1645217 100644 (file)
         <param-name>min_user_password_score</param-name>
         <param-value>50</param-value>
     </context-param>
+    <context-param>
+        <description>Whether user registration page is in index or own page.</description>
+        <param-name>is_feature_user_registraion_in_index_enabled</param-name>
+        <param-value>false</param-value>
+    </context-param>
     <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
index 340b6981c2f9c9f13f580c35225b85c32882b202..1bd6dd9ba972aab61ca717b1c366894a1f79c00f 100644 (file)
@@ -16,7 +16,7 @@
                        <h:outputText value="#{msg.CONTENT_TITLE_USER_REGISTER}" />
                </ui:define>
 
-               <ui:define name="content">
+               <ui:define name="content" rendered="#{not featureController.isFeatureEnabled('user_registraion_in_index')}">
                        <ui:fragment rendered="#{featureController.isFeatureEnabled('user_registration')}">
                                <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
                                        <div class="para">
                                </ui:include>
                        </ui:fragment>
                </ui:define>
+
+               <ui:define name="content" rendered="#{featureController.isFeatureEnabled('user_registraion_in_index')}">
+                               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+                                       <ui:param name="message" value="#{msg.ERROR_GUEST_REGISTRATION_IN_INDEX_ENABLED}" />
+                                       <ui:param name="styleClass" value="errors" />
+                               </ui:include>
+               </ui:define>
        </ui:composition>
 </html>
index 9b7f7cdedc342ee74886dfb8e0e21c171efdc99f..2d926740a69c467a7c918adb0385bbcdd832d9a2 100644 (file)
                        <h:outputText value="#{msg.CONTENT_TITLE_INDEX_WELCOME}" />
                </ui:define>
 
-               <ui:define name="content">
-                       <div class="para">
-                               <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA1}" />
-                       </div>
-
-                       <div class="para">
-                               <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA2}" />
-                       </div>
+               <ui:define name="content" rendered="#{featureController.isFeatureEnabled('user_registraion_in_index')}">
+                       <div class="registration_form">
+                               <ui:fragment rendered="#{featureController.isFeatureEnabled('user_register_multiple_page')}">
+                                       <ui:include src="/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl" />
+                               </ui:fragment>
 
                        <div class="para">
                                <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA3}" />
                        </div>
                </ui:define>
+
+               <ui:define name="content" rendered="#{not featureController.isFeatureEnabled('user_registraion_in_index')}">
+                       <ui:include src="/WEB-INF/templates/guest/guest_index.tpl" />
+               </ui:define>
        </ui:composition>
 </html>