]> 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:widgets="http://mxchange.org/jsf/core/widgets"
5                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
7                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
8
9         <ui:define name="guest_title">
10                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOST_PASSWORD}" />
11         </ui:define>
12
13         <ui:define name="content_header">
14                 <h:outputText value="#{msg.CONTENT_TITLE_USER_LOST_PASSWORD}" />
15         </ui:define>
16
17         <ui:define name="content">
18                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name') and featureController.isFeatureEnabled('user_password_recovery')}">
19                         <div id="user_lost_password_content">
20                                 <h:form id="form_lost_password">
21                                         <h:panelGroup styleClass="table" layout="block">
22                                                 <div class="table-header">
23                                                         <h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
24                                                 </div>
25
26                                                 <fieldset class="fieldset" id="login_data">
27                                                         <legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">
28                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_LEGEND}" />
29                                                         </legend>
30
31                                                         <h:panelGroup styleClass="table-row" layout="block">
32                                                                 <div class="table-left">
33                                                                         <h:outputLabel for="id" value="#{msg.ENTER_USER_NAME}" />
34                                                                 </div>
35
36                                                                 <div class="table-right">
37                                                                         <h:inputText styleClass="input" id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" />
38                                                                 </div>
39                                                         </h:panelGroup>
40
41                                                         <div class="table-header">
42                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL}" />
43                                                         </div>
44
45                                                         <h:panelGroup styleClass="table-row" layout="block">
46                                                                 <div class="table-left">
47                                                                         <h:outputLabel for="email" value="#{msg.ENTER_EMAIL_ADDRESS}" />
48                                                                 </div>
49
50                                                                 <div class="table-right">
51                                                                         <h:inputText styleClass="input" id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" />
52                                                                 </div>
53                                                         </h:panelGroup>
54                                                 </fieldset>
55
56                                                 <div class="table-footer">
57                                                         <h:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
58                                                         <h:commandButton styleClass="submit" type="submit" value="#{msg.BUTTON_CONTINUE_STEP_2}" action="#{passwordRecoveryController.doLostPasswordStep2()}" />
59                                                 </div>
60                                         </h:panelGroup>
61                                 </h:form>
62                         </div>
63                 </ui:fragment>
64
65                 <widgets:outputMessageBox message="#{msg.ERROR_GUEST_USER_RECOVER_PASSWORD_DEACTIVATED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('user_login_require_user_name') or not featureController.isFeatureEnabled('user_password_recovery')}" />
66         </ui:define>
67 </ui:composition>