]> git.mxchange.org Git - addressbook-war.git/blob - web/user/login_change_email_address.xhtml
Continued generally:
[addressbook-war.git] / web / user / login_change_email_address.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/login/login_base.tpl">
12                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_CHANGE_EMAIL_ADDRESS}</ui:define>
13
14                 <ui:define name="content_header">
15                         #{msg.CONTENT_TITLE_LOGIN_CHANGE_EMAIL_ADDRESS}
16                 </ui:define>
17
18                 <ui:define name="content">
19                         <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
20                                 <div class="table">
21                                         <div class="table_header">
22                                                 #{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}
23                                         </div>
24
25                                         <h:form id="login_form">
26                                                 <div class="para">
27                                                         <fieldset id="change_email">
28                                                                 <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">#{msg.LOGIN_CHANGE_EMAIL_LEGEND}</legend>
29
30                                                                 <div class="table_row">
31                                                                         <div class="table_left">
32                                                                                 #{msg.LOGIN_CHANGE_EMAIL_OLD_ADDRESS}
33                                                                         </div>
34
35                                                                         <div class="table_right">
36                                                                                 #{contactController.emailAddress}
37                                                                         </div>
38
39                                                                         <div class="clear"></div>
40                                                                 </div>
41
42                                                                 <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
43                                                         </fieldset>
44                                                 </div>
45
46                                                 <ui:include src="/WEB-INF/templates/login/login_enter_current_password.tpl" />
47
48                                                 <div class="table_footer">
49                                                         <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
50                                                         <h:commandButton class="submit" type="submit" id="change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{emailChangeController.doChangeEmailAddress()}" />
51                                                 </div>
52                                         </h:form>
53                                 </div>
54                         </ui:fragment>
55
56                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
57                                 <ui:include id="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
58                         </ui:fragment>
59                 </ui:define>
60         </ui:composition>
61 </html>