]> 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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
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           >
10
11         <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
12                 <ui:define name="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                         <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required') and featureController.isFeatureEnabled('user_password_recovery')}">
22                                 <div class="para" id="user_lost_password_content">
23                                         <h:form id="form_lost_password">
24                                                 <h:panelGroup styleClass="table" layout="block">
25                                                         <div class="table_header">
26                                                                 <h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
27                                                         </div>
28
29                                                         <fieldset class="fieldset" id="login_data">
30                                                                 <legend title="#{msg.GUEST_LOST_PASSWORD_LEGEND_TITLE}">
31                                                                         <h:outputText value="#{msg.GUEST_LOST_PASSWORD_LEGEND}" />
32                                                                 </legend>
33
34                                                                 <div class="table_row">
35                                                                         <div class="table_left">
36                                                                                 <h:outputLabel for="id" value="#{msg.ENTER_USER_NAME}" />
37                                                                         </div>
38
39                                                                         <div class="table_right">
40                                                                                 <h:inputText styleClass="input" id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" />
41                                                                         </div>
42
43                                                                         <div class="clear"></div>
44                                                                 </div>
45
46                                                                 <div class="table_header">
47                                                                         <h:outputText value="#{msg.GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL}" />
48                                                                 </div>
49
50                                                                 <div class="table_row">
51                                                                         <div class="table_left">
52                                                                                 <h:outputLabel for="email" value="#{msg.ENTER_EMAIL_ADDRESS}" />
53                                                                         </div>
54
55                                                                         <div class="table_right">
56                                                                                 <h:inputText styleClass="input" id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" />
57                                                                         </div>
58
59                                                                         <div class="clear"></div>
60                                                                 </div>
61
62                                                         </fieldset>
63
64                                                         <div class="table_footer">
65                                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
66                                                                 <h:commandButton styleClass="submit" type="submit" value="#{msg.BUTTON_CONTINUE_STEP_2}" action="#{passwordRecoveryController.doLostPasswordStep2()}" />
67                                                         </div>
68                                                 </h:panelGroup>
69                                         </h:form>
70                                 </div>
71                         </ui:fragment>
72
73                         <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_name_required') or not featureController.isFeatureEnabled('user_password_recovery')}">
74                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
75                                         <ui:param name="message" value="#{msg.ERROR_GUEST_USER_RECOVER_PASSWORD_DEACTIVATED}" />
76                                         <ui:param name="styleClass" value="errors" />
77                                 </ui:include>
78                         </ui:fragment>
79                 </ui:define>
80         </ui:composition>
81 </html>