]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/guest/user/user_register_page2.xhtml
Please cherry-pick:
[jjobs-war.git] / web / guest / user / user_register_page2.xhtml
index f06e953c8e82007f35ccd6a153d53f3be74b9e64..f8bf7a6be15c493ad80c9fcaca3ab9efdb390703 100644 (file)
@@ -1,43 +1,35 @@
 <?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
-       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
-       xmlns="http://www.w3.org/1999/xhtml"
-       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
-       xmlns:h="http://xmlns.jcp.org/jsf/html"
-       xmlns:f="http://xmlns.jcp.org/jsf/core"
-       >
+<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
+                               xmlns="http://www.w3.org/1999/xhtml"
+                               xmlns:widgets="http://mxchange.org/jsf/core/widgets"
+                               xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+                               xmlns:h="http://xmlns.jcp.org/jsf/html"
+                               xmlns:f="http://xmlns.jcp.org/jsf/core"
+                               xmlns:p="http://primefaces.org/ui">
 
-       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
-               <ui:define name="guest_title">
-                       <h:outputText value="#{msg.PAGE_TITLE_USER_REGISTER_PAGE2}" />
-               </ui:define>
+       <ui:define name="guest_title">
+               <h:outputText value="#{msg.PAGE_TITLE_USER_REGISTER_PAGE2}" />
+       </ui:define>
 
-               <ui:define name="content_header">
-                       <h:outputText value="#{msg.CONTENT_TITLE_USER_REGISTER_PAGE2}" />
-               </ui:define>
+       <ui:define name="content_header">
+               <h:outputText value="#{msg.CONTENT_TITLE_USER_REGISTER_PAGE2}" />
+       </ui:define>
 
-               <ui:define name="content">
-                       <ui:fragment rendered="#{featureController.isFeatureEnabled('user_register_multiple_page')}">
-                               <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
-                                       <div class="para">
-                                               #{msg.GUEST_ALREADY_USER_CONTINUE_LOGIN_1}
-                                               <h:link outcome="user_login" value="#{msg.CLICK_HERE}" />
-                                               #{msg.GUEST_ALREADY_USER_CONTINUE_LOGIN_2}
-                                       </div>
-                               </ui:fragment>
+       <ui:define name="content">
+               <widgets:outputMessageBox id="error-user-registration-multi-disabled" message="#{msg.ERROR_GUEST_REGISTER_MULTIPLE_PAGE_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('user_register_multiple_page')}" />
 
-                               <div class="registration_form">
-                                       <ui:include src="/WEB-INF/templates/guest/user/register/guest_form_register_page2.tpl" />
-                               </div>
+               <ui:fragment rendered="#{featureController.isFeatureEnabled('user_register_multiple_page')}">
+                       <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
+                               <h:panelGroup styleClass="para" layout="block">
+                                       <h:outputText value="#{msg.GUEST_ALREADY_USER_CONTINUE_LOGIN_1}" />
+                                       <p:link outcome="user_login" value="#{msg.CLICK_HERE}" />
+                                       <h:outputText value="#{msg.GUEST_ALREADY_USER_CONTINUE_LOGIN_2}" />
+                               </h:panelGroup>
                        </ui:fragment>
 
-                       <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_register_multiple_page')}">
-                               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
-                                       <ui:param name="message" value="#{msg.ERROR_GUEST_REGISTER_MULTIPLE_PAGE_NOT_ENABLED}" />
-                                       <ui:param name="styleClass" value="errors" />
-                               </ui:include>
-                       </ui:fragment>
-               </ui:define>
-       </ui:composition>
-</html>
+                       <h:panelGroup layout="block" styleClass="registration_form">
+                               <ui:include src="/WEB-INF/templates/guest/user/register/guest_form_register_page2.tpl" />
+                       </h:panelGroup>
+               </ui:fragment>
+       </ui:define>
+</ui:composition>