]> git.mxchange.org Git - jjobs-war.git/blob - web/login/login_change_password.xhtml
6b422d9d93db066cd48f386ff9466f63388e0b64
[jjobs-war.git] / web / login / login_change_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 xmlns="http://www.w3.org/1999/xhtml"
4           xmlns:ui="http://java.sun.com/jsf/facelets"
5           xmlns:h="http://xmlns.jcp.org/jsf/html"
6           xmlns:f="http://xmlns.jcp.org/jsf/core"
7           >
8
9         <ui:composition template="/WEB-INF/templates/login/login_base.tpl">
10                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_CHANGE_PASSWORD}</ui:define>
11
12                 <ui:define name="content_header">
13                         #{msg.CONTENT_TITLE_LOGIN_CHANGE_PASSWORD}
14                 </ui:define>
15
16                 <ui:define name="content">
17                         <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
18                                 <div class="table">
19                                         <div class="table_header">
20                                                 #{msg.LOGIN_EDIT_PERSONAL_DATA_TITLE}
21                                         </div>
22
23                                         <h:form id="login_form">
24                                                 <div class="table_header2">
25                                                         #{msg.LOGIN_CHANGE_PASSWORD_TITLE}
26                                                 </div>
27
28                                                 <div class="para">
29                                                         <fieldset id="login_data">
30                                                                 <legend title="#{msg.LOGIN_CHANGE_PASSWORD_LEGEND_TITLE}">#{msg.LOGIN_CHANGE_PASSWORD_LEGEND}</legend>
31
32
33                                                                 <div class="table_row">
34                                                                         <div class="table_left">
35                                                                                 <h:outputLabel for="password" value="#{msg.LOGIN_ENTER_PASSWORD_CONFIRM}" />
36                                                                         </div>
37
38                                                                         <div class="table_right">
39                                                                                 <h:inputSecret class="input" id="password" size="10" maxlength="255" value="#{loginController.currentPassword}" required="true" />
40                                                                         </div>
41
42                                                                         <div class="clear"></div>
43                                                                 </div>
44
45                                                                 <div class="table_row">
46                                                                         <div class="table_left">
47                                                                                 <h:outputLabel for="password1" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD1}" />
48                                                                         </div>
49
50                                                                         <div class="table_right">
51                                                                                 <h:inputSecret class="input" id="password1" size="10" maxlength="255" value="#{loginController.userPassword}" required="true" />
52                                                                         </div>
53
54                                                                         <div class="clear"></div>
55                                                                 </div>
56
57                                                                 <div class="table_row">
58                                                                         <div class="table_left">
59                                                                                 <h:outputLabel for="password2" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD2}" />
60                                                                         </div>
61
62                                                                         <div class="table_right">
63                                                                                 <h:inputSecret class="input" id="password2" size="10" maxlength="255" value="#{loginController.userPasswordRepeat}" required="true" />
64                                                                         </div>
65
66                                                                         <div class="clear"></div>
67                                                                 </div>
68                                                         </fieldset>
69                                                 </div>
70
71                                                 <div class="table_footer">
72                                                         <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
73                                                         <h:commandButton class="submit" type="submit" id="change_password" value="#{msg.BUTTON_CHANGE_PASSWORD}" action="#{loginController.changePassword()}" />
74                                                 </div>
75                                         </h:form>
76                                 </div>
77                         </ui:fragment>
78
79                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
80                                 <ui:include id="login_only" class="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
81                         </ui:fragment>
82                 </ui:define>
83         </ui:composition>
84 </html>