]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl
Updated copyright year
[addressbook-war.git] / web / WEB-INF / templates / guest / user / register / guest_form_register_page1.tpl
index 870c4ffaf4892b984ebc5c63f5c087b9497d7221..23c7b37edca56f443739dd98e4dff0ca89233f48 100644 (file)
@@ -3,66 +3,88 @@
        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">
-
-
-       <h:form id="form_register_page1">
-               <div class="table">
-                       <div class="table_header">
-                               #{msg.GUEST_REGISTRATION_PAGE1_TITLE}
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:p="http://primefaces.org/ui"
+       >
+
+       <h:form rendered="#{featureController.isFeatureEnabled('user_registration')}">
+               <h:panelGroup layout="block">
+                       <div class="table-header">
+                               <h:outputText value="#{msg.GUEST_REGISTRATION_PAGE1_TITLE}" />
                        </div>
 
                        <div class="para">
-                               <fieldset id="login_data">
+                               <fieldset class="fieldset">
                                        <legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
                                                <h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
                                        </legend>
 
-                                       <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
-                                               <div class="table_row">
-                                                       <div class="table_left">
-                                                               <h:outputLabel for="userName" value="#{msg.GUEST_REGISTRATION_ENTER_USER_NAME}" />
+                                       <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
+                                               <h:panelGroup styleClass="table-row" layout="block">
+                                                       <div class="table-left-medium">
+                                                               <p:outputLabel for="userName" value="#{msg.GUEST_REGISTRATION_ENTER_USER_NAME}" />
                                                        </div>
 
-                                                       <div class="table_right">
-                                                               <h:inputText styleClass="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" />
+                                                       <div class="table-right-medium">
+                                                               <p:inputText
+                                                                       id="userName"
+                                                                       size="20"
+                                                                       maxlength="255"
+                                                                       value="#{userRegistrationController.userName}"
+                                                                       required="true"
+                                                                       requiredMessage="#{msg.GUEST_REGISTRATION_USER_NAME_NOT_ENTERED}"
+                                                                       />
                                                        </div>
+                                               </h:panelGroup>
 
-                                                       <div class="clear"></div>
-                                               </div>
+                                               <h:panelGroup styleClass="error-container" layout="block">
+                                                       <p:message for="userName" />
+                                               </h:panelGroup>
                                        </ui:fragment>
 
                                        <ui:include src="/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl" />
 
-                                       <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
+                                       <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
                                                <div class="para"></div>
 
-                                               <div class="table_row">
-                                                       <div class="table_left">
-                                                               <h:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
+                                               <h:panelGroup styleClass="table-row" layout="block">
+                                                       <div class="table-left-medium">
+                                                               <p:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
                                                        </div>
 
-                                                       <div class="table_right">
-                                                               <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" required="true" />
+                                                       <div class="table-right-medium">
+                                                               <p:inputText type="secret" id="userPassword" size="10" maxlength="255" value="#{userRegistrationController.userPassword}" required="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}" requiredMessage="#{msg.GUEST_REGISTRATION_PASSWORD_NOT_ENTERED}" />
                                                        </div>
+                                               </h:panelGroup>
 
-                                                       <div class="clear"></div>
-                                               </div>
+                                               <h:panelGroup styleClass="error-container" layout="block">
+                                                       <p:message for="userPassword" />
+                                               </h:panelGroup>
 
-                                               <div class="table_row">
-                                                       <div class="table_left">
-                                                               <h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
+                                               <h:panelGroup styleClass="table-row" layout="block">
+                                                       <div class="table-left-medium">
+                                                               <p:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
                                                        </div>
 
-                                                       <div class="table_right">
-                                                               <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" required="true" />
+                                                       <div class="table-right-medium">
+                                                               <p:inputText type="secret" id="userPasswordRepeat" size="10" maxlength="255" value="#{userRegistrationController.userPasswordRepeat}" required="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}" requiredMessage="#{msg.GUEST_REGISTRATION_PASSWORD_REPEAT_NOT_ENTERED}" />
                                                        </div>
+                                               </h:panelGroup>
 
-                                                       <div class="clear"></div>
-                                               </div>
+                                               <h:panelGroup styleClass="error-container" layout="block">
+                                                       <p:message for="userPasswordRepeat" />
+                                               </h:panelGroup>
 
                                                <div class="para notice">
-                                                       <h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" />
+                                                       <ul>
+                                                               <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" /></li>
+                                                               <ui:fragment rendered="#{featureController.isFeatureEnabled('allow_user_registration_empty_password')}">
+                                                                       <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_ALLOWED}" /></li>
+                                                               </ui:fragment>
+                                                               <ui:fragment rendered="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}">
+                                                                       <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_NOT_ALLOWED}" /></li>
+                                                               </ui:fragment>
+                                                       </ul>
                                                </div>
                                        </ui:fragment>
                                </fieldset>
 
                        <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
 
-                       <div class="table_footer">
-                               <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
-                               <h:commandButton styleClass="submit" type="submit" id="continueRegisterPage1" value="#{msg.BUTTON_CONTINUE_REGISTER_PAGE2}" action="#{registerController.doRegisterMultiPage1()}" />
-                       </div>
-               </div>
+                       <p:panelGrid columns="2" layout="grid">
+                               <p:commandButton
+                                       type="reset"
+                                       value="#{msg.BUTTON_RESET_FORM}"
+                                       />
+
+                               <p:commandButton
+                                       type="submit"
+                                       value="#{msg.BUTTON_CONTINUE_REGISTER_PAGE2}"
+                                       action="#{userRegistrationController.doRegisterMultiPage1()}"
+                                       />
+                       </p:panelGrid>
+               </h:panelGroup>
        </h:form>
 </ui:composition>