]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_lost_password.xhtml
Please cherry-pick:
[jjobs-war.git] / web / guest / user / user_lost_password.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="guest_title">
9                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOST_PASSWORD}" />
10         </ui:define>
11
12         <ui:define name="content_header">
13                 <h:outputText value="#{msg.CONTENT_TITLE_USER_LOST_PASSWORD}" />
14         </ui:define>
15
16         <ui:define name="content">
17                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name') and featureController.isFeatureEnabled('user_password_recovery')}">
18                         <div class="para" id="user_lost_password_content">
19                                 <h:form id="form_lost_password">
20                                         <h:panelGroup styleClass="table" layout="block">
21                                                 <div class="table_header">
22                                                         <h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
23                                                 </div>
24
25                                                 <fieldset class="fieldset" id="login_data">
26                                                         <legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">
27                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_LEGEND}" />
28                                                         </legend>
29
30                                                         <h:panelGroup styleClass="table_row" layout="block">
31                                                                 <div class="table_left">
32                                                                         <h:outputLabel for="id" value="#{msg.ENTER_USER_NAME}" />
33                                                                 </div>
34
35                                                                 <div class="table_right">
36                                                                         <h:inputText styleClass="input" id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" />
37                                                                 </div>
38
39                                                                 <div class="clear"></div>
40                                                         </h:panelGroup>
41
42                                                         <div class="table_header">
43                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL}" />
44                                                         </div>
45
46                                                         <h:panelGroup styleClass="table_row" layout="block">
47                                                                 <div class="table_left">
48                                                                         <h:outputLabel for="email" value="#{msg.ENTER_EMAIL_ADDRESS}" />
49                                                                 </div>
50
51                                                                 <div class="table_right">
52                                                                         <h:inputText styleClass="input" id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" />
53                                                                 </div>
54
55                                                                 <div class="clear"></div>
56                                                         </h:panelGroup>
57
58                                                 </fieldset>
59
60                                                 <div class="table_footer">
61                                                         <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
62                                                         <h:commandButton styleClass="submit" type="submit" value="#{msg.BUTTON_CONTINUE_STEP_2}" action="#{passwordRecoveryController.doLostPasswordStep2()}" />
63                                                 </div>
64                                         </h:panelGroup>
65                                 </h:form>
66                         </div>
67                 </ui:fragment>
68
69                 <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_login_require_user_name') or not featureController.isFeatureEnabled('user_password_recovery')}">
70                         <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
71                                 <ui:param name="message" value="#{msg.ERROR_GUEST_USER_RECOVER_PASSWORD_DEACTIVATED}" />
72                                 <ui:param name="styleClass" value="errors" />
73                         </ui:include>
74                 </ui:fragment>
75         </ui:define>
76 </ui:composition>