]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_lost_password.xhtml
Updated copyright year
[jjobs-war.git] / web / guest / user / user_lost_password.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/guest/guest_base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:core="http://mxchange.org/jsf/core/widgets"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         xmlns:p="http://primefaces.org/ui"
10         >
11
12         <ui:define name="document_guest_title">
13                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOST_PASSWORD}" />
14         </ui:define>
15
16         <ui:define name="content_header">
17                 <h:outputText value="#{msg.CONTENT_TITLE_USER_LOST_PASSWORD}" />
18         </ui:define>
19
20         <ui:define name="content">
21                 <core:outputMessageBox
22                         panelGroupId="errorUserRecoveryDisabled"
23                         message="#{msg.ERROR_GUEST_USER_RECOVER_PASSWORD_DISABLED}"
24                         messageStyleClass="alert-danger"
25                         rendered="#{not featureController.isFeatureEnabled('user_login_require_user_name') or not featureController.isFeatureEnabled('user_password_recovery')}"
26                         />
27
28                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name') and featureController.isFeatureEnabled('user_password_recovery')}">
29                         <div id="user_lost_password_content">
30                                 <h:form>
31                                         <h:panelGroup styleClass="table" layout="block">
32                                                 <div class="table-header">
33                                                         <h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
34                                                 </div>
35
36                                                 <fieldset class="fieldset">
37                                                         <legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">
38                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_LEGEND}" />
39                                                         </legend>
40
41                                                         <h:panelGroup styleClass="table-row" layout="block">
42                                                                 <div class="table-left">
43                                                                         <p:outputLabel for="id" value="#{msg.ENTER_USER_NAME}" />
44                                                                 </div>
45
46                                                                 <div class="table-right">
47                                                                         <p:inputText id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" />
48                                                                 </div>
49                                                         </h:panelGroup>
50
51                                                         <div class="table-header">
52                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL}" />
53                                                         </div>
54
55                                                         <h:panelGroup styleClass="table-row" layout="block">
56                                                                 <div class="table-left">
57                                                                         <p:outputLabel for="email" value="#{msg.ENTER_EMAIL_ADDRESS}" />
58                                                                 </div>
59
60                                                                 <div class="table-right">
61                                                                         <p:inputText id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" />
62                                                                 </div>
63                                                         </h:panelGroup>
64                                                 </fieldset>
65
66                                                 <p:panelGrid columns="2" layout="grid">
67                                                         <p:commandButton
68                                                                 type="reset"
69                                                                 value="#{msg.BUTTON_RESET_FORM}"
70                                                                 />
71
72                                                         <p:commandButton
73                                                                 type="submit"
74                                                                 value="#{msg.BUTTON_CONTINUE_STEP_2}"
75                                                                 action="#{passwordRecoveryController.doLostPasswordStep2()}"
76                                                                 />
77                                                 </p:panelGrid>
78                                         </h:panelGroup>
79                                 </h:form>
80                         </div>
81                 </ui:fragment>
82         </ui:define>
83 </ui:composition>