]> git.mxchange.org Git - addressbook-war.git/blob - web/login/login_change_personal_data.xhtml
Added nice boxes around current password input box
[addressbook-war.git] / web / login / login_change_personal_data.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_EDIT_USER_DATA}</ui:define>
11
12                 <ui:define name="content_header">
13                         #{msg.CONTENT_TITLE_LOGIN_EDIT_USER_DATA}
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_USER_DATA_TITLE}
21                                         </div>
22
23                                         <h:form id="login_change_personal_form">
24                                                 <div class="table_header2">
25                                                         #{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}
26                                                 </div>
27
28                                                 <ui:include src="/WEB-INF/templates/generic/form_personal_data.tpl" />
29
30                                                 <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
31
32                                                 <div class="para">
33                                                         <fieldset id="current_password">
34                                                                 <legend title="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND_TITLE}">#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND}</legend>
35                                                                 <div class="table_row">
36                                                                         <div class="table_left">
37                                                                                 <h:outputLabel for="password" value="#{msg.LOGIN_ENTER_PASSWORD_CONFIRM}" />
38                                                                         </div>
39
40                                                                         <div class="table_right">
41                                                                                 <h:inputSecret class="input" id="password" size="10" maxlength="255" value="#{loginController.currentPassword}" required="true" />
42                                                                         </div>
43
44                                                                         <div class="clear"></div>
45                                                                 </div>
46                                                         </fieldset>
47                                                 </div>
48
49                                                 <div class="table_footer">
50                                                         <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
51                                                         <h:commandButton class="submit" type="submit" id="change_personal_data" value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}" action="#{loginController.changePersonalData()}" />
52                                                 </div>
53                                         </h:form>
54                                 </div>
55                         </ui:fragment>
56
57                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
58                                 <ui:include id="login_only" class="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
59                         </ui:fragment>
60                 </ui:define>
61         </ui:composition>
62 </html>