]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl
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
8         <h:form id="form_register_page1" rendered="#{featureController.isFeatureEnabled('user_registration')}">
9                 <h:panelGroup styleClass="table_medium" layout="block">
10                         <div class="table_header">
11                                 <h:outputText value="#{msg.GUEST_REGISTRATION_PAGE1_TITLE}" />
12                         </div>
13
14                         <div class="para">
15                                 <fieldset class="fieldset" id="login_data">
16                                         <legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
17                                                 <h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
18                                         </legend>
19
20                                         <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
21                                                 <h:panelGroup styleClass="table_row" layout="block">
22                                                         <div class="table_left_medium">
23                                                                 <h:outputLabel for="userName" value="#{msg.GUEST_REGISTRATION_ENTER_USER_NAME}" />
24                                                         </div>
25
26                                                         <div class="table_right_medium">
27                                                                 <h:inputText styleClass="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" requiredMessage="#{msg.GUEST_REGISTRATION_USER_NAME_NOT_ENTERED}" />
28                                                         </div>
29
30                                                         <div class="clear"></div>
31                                                 </h:panelGroup>
32
33                                                 <h:panelGroup styleClass="error_container" layout="block">
34                                                         <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" />
35                                                 </h:panelGroup>
36                                         </ui:fragment>
37
38                                         <ui:include src="/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl" />
39
40                                         <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
41                                                 <div class="para"></div>
42
43                                                 <h:panelGroup styleClass="table_row" layout="block">
44                                                         <div class="table_left_medium">
45                                                                 <h:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
46                                                         </div>
47
48                                                         <div class="table_right_medium">
49                                                                 <h:inputSecret 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}" />
50                                                         </div>
51
52                                                         <div class="clear"></div>
53                                                 </h:panelGroup>
54
55                                                 <h:panelGroup styleClass="error_container" layout="block">
56                                                         <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
57                                                 </h:panelGroup>
58
59                                                 <h:panelGroup styleClass="table_row" layout="block">
60                                                         <div class="table_left_medium">
61                                                                 <h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
62                                                         </div>
63
64                                                         <div class="table_right_medium">
65                                                                 <h:inputSecret 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}" />
66                                                         </div>
67
68                                                         <div class="clear"></div>
69                                                 </h:panelGroup>
70
71                                                 <h:panelGroup styleClass="error_container" layout="block">
72                                                         <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
73                                                 </h:panelGroup>
74
75                                                 <div class="para notice">
76                                                         <ul>
77                                                                 <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" /></li>
78                                                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('allow_user_registration_empty_password')}">
79                                                                         <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_ALLOWED}" /></li>
80                                                                 </ui:fragment>
81                                                                 <ui:fragment rendered="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}">
82                                                                         <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_NOT_ALLOWED}" /></li>
83                                                                 </ui:fragment>
84                                                         </ul>
85                                                 </div>
86                                         </ui:fragment>
87                                 </fieldset>
88                         </div>
89
90                         <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
91
92                         <div class="table_footer">
93                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
94                                 <h:commandButton styleClass="submit" type="submit" id="continueRegisterPage1" value="#{msg.BUTTON_CONTINUE_REGISTER_PAGE2}" action="#{userRegistrationController.doRegisterMultiPage1()}" />
95                         </div>
96                 </h:panelGroup>
97         </h:form>
98 </ui:composition>