]> 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                 <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')}" />
19
20                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name') and featureController.isFeatureEnabled('user_password_recovery')}">
21                         <div id="user_lost_password_content">
22                                 <h:form id="form_lost_password">
23                                         <h:panelGroup styleClass="table" layout="block">
24                                                 <div class="table-header">
25                                                         <h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
26                                                 </div>
27
28                                                 <fieldset class="fieldset" id="login_data">
29                                                         <legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">
30                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_LEGEND}" />
31                                                         </legend>
32
33                                                         <h:panelGroup styleClass="table-row" layout="block">
34                                                                 <div class="table-left">
35                                                                         <h:outputLabel for="id" value="#{msg.ENTER_USER_NAME}" />
36                                                                 </div>
37
38                                                                 <div class="table-right">
39                                                                         <h:inputText styleClass="input" id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" />
40                                                                 </div>
41                                                         </h:panelGroup>
42
43                                                         <div class="table-header">
44                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL}" />
45                                                         </div>
46
47                                                         <h:panelGroup styleClass="table-row" layout="block">
48                                                                 <div class="table-left">
49                                                                         <h:outputLabel for="email" value="#{msg.ENTER_EMAIL_ADDRESS}" />
50                                                                 </div>
51
52                                                                 <div class="table-right">
53                                                                         <h:inputText styleClass="input" id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" />
54                                                                 </div>
55                                                         </h:panelGroup>
56                                                 </fieldset>
57
58                                                 <div class="table-footer">
59                                                         <h:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
60                                                         <h:commandButton styleClass="submit" type="submit" value="#{msg.BUTTON_CONTINUE_STEP_2}" action="#{passwordRecoveryController.doLostPasswordStep2()}" />
61                                                 </div>
62                                         </h:panelGroup>
63                                 </h:form>
64                         </div>
65                 </ui:fragment>
66         </ui:define>
67 </ui:composition>