]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl
WIP - Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / guest / user / register / guest_form_register_page1.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:p="http://primefaces.org/ui">
8
9         <h:form id="form_register_page1" rendered="#{featureController.isFeatureEnabled('user_registration')}">
10                 <h:panelGroup styleClass="table table-medium" layout="block">
11                         <div class="table-header">
12                                 <h:outputText value="#{msg.GUEST_REGISTRATION_PAGE1_TITLE}" />
13                         </div>
14
15                         <div class="para">
16                                 <fieldset class="fieldset" id="login_data">
17                                         <legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
18                                                 <h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
19                                         </legend>
20
21                                         <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
22                                                 <h:panelGroup styleClass="table-row" layout="block">
23                                                         <div class="table-left-medium">
24                                                                 <p:outputLabel for="userName" value="#{msg.GUEST_REGISTRATION_ENTER_USER_NAME}" />
25                                                         </div>
26
27                                                         <div class="table-right-medium">
28                                                                 <p:inputText styleClass="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" requiredMessage="#{msg.GUEST_REGISTRATION_USER_NAME_NOT_ENTERED}" />
29                                                         </div>
30                                                 </h:panelGroup>
31
32                                                 <h:panelGroup styleClass="error-container" layout="block">
33                                                         <p:message for="userName" />
34                                                 </h:panelGroup>
35                                         </ui:fragment>
36
37                                         <ui:include src="/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl" />
38
39                                         <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
40                                                 <div class="para"></div>
41
42                                                 <h:panelGroup styleClass="table-row" layout="block">
43                                                         <div class="table-left-medium">
44                                                                 <p:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
45                                                         </div>
46
47                                                         <div class="table-right-medium">
48                                                                 <p:inputText type="secret" styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" required="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}" requiredMessage="#{msg.GUEST_REGISTRATION_PASSWORD_NOT_ENTERED}" />
49                                                         </div>
50                                                 </h:panelGroup>
51
52                                                 <h:panelGroup styleClass="error-container" layout="block">
53                                                         <p:message for="userPassword" />
54                                                 </h:panelGroup>
55
56                                                 <h:panelGroup styleClass="table-row" layout="block">
57                                                         <div class="table-left-medium">
58                                                                 <p:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
59                                                         </div>
60
61                                                         <div class="table-right-medium">
62                                                                 <p:inputText type="secret" styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" required="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}" requiredMessage="#{msg.GUEST_REGISTRATION_PASSWORD_REPEAT_NOT_ENTERED}" />
63                                                         </div>
64                                                 </h:panelGroup>
65
66                                                 <h:panelGroup styleClass="error-container" layout="block">
67                                                         <p:message for="userPasswordRepeat" />
68                                                 </h:panelGroup>
69
70                                                 <div class="para notice">
71                                                         <ul>
72                                                                 <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" /></li>
73                                                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('allow_user_registration_empty_password')}">
74                                                                         <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_ALLOWED}" /></li>
75                                                                 </ui:fragment>
76                                                                 <ui:fragment rendered="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}">
77                                                                         <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_NOT_ALLOWED}" /></li>
78                                                                 </ui:fragment>
79                                                         </ul>
80                                                 </div>
81                                         </ui:fragment>
82                                 </fieldset>
83                         </div>
84
85                         <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
86
87                         <div class="table-footer">
88                                 <p:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
89                                 <p:commandButton styleClass="submit" type="submit" id="button_continue_register_page1" value="#{msg.BUTTON_CONTINUE_REGISTER_PAGE2}" action="#{userRegistrationController.doRegisterMultiPage1()}" />
90                         </div>
91                 </h:panelGroup>
92         </h:form>
93 </ui:composition>