]> git.mxchange.org Git - addressbook-war.git/blob - web/user/login_change_email_address.xhtml
Used much more h:outputText instead of directly the message in the template. This...
[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                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
23                                         </div>
24
25                                         <h:form id="login_change_email_address_form">
26                                                 <div class="para">
27                                                         <fieldset id="change_email">
28                                                                 <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
29                                                                         <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
30                                                                 </legend>
31
32                                                                 <div class="table_row">
33                                                                         <div class="table_left">
34                                                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_OLD_ADDRESS}" />
35                                                                         </div>
36
37                                                                         <div class="table_right">
38                                                                                 <h:outputText value="#{contactController.emailAddress}" />
39                                                                         </div>
40
41                                                                         <div class="clear"></div>
42                                                                 </div>
43
44                                                                 <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
45                                                         </fieldset>
46                                                 </div>
47
48                                                 <ui:include src="/WEB-INF/templates/login/login_enter_current_password.tpl" />
49
50                                                 <div class="table_footer">
51                                                         <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
52                                                         <h:commandButton class="submit" type="submit" id="change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{emailChangeController.doChangeEmailAddress()}" />
53                                                 </div>
54                                         </h:form>
55                                 </div>
56                         </ui:fragment>
57
58                         <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
59                                 <ui:include id="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
60                         </ui:fragment>
61                 </ui:define>
62         </ui:composition>
63 </html>