]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_user_change_email_address.xhtml
Please cherry-pick:
[jjobs-war.git] / web / user / login_user_change_email_address.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
7                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
8
9         <ui:define name="login_title">
10                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_EMAIL_ADDRESS}" />
11         </ui:define>
12
13         <ui:define name="content_header">
14                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_EMAIL_ADDRESS}" />
15         </ui:define>
16
17         <ui:define name="content">
18                 <widgets:outputMessageBox message="#{msg.ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED}" styleClass="errors" rendered="#{not featureController.isFeatureEnabled('user_change_email_address')}" />
19
20                 <h:panelGroup styleClass="table" layout="block" rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('user_change_email_address')}">
21                         <div class="table_header">
22                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
23                         </div>
24
25                         <h:form id="form_user_change_email_address">
26                                 <fieldset class="fieldset" id="change_email">
27                                         <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
28                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
29                                         </legend>
30
31                                         <h:panelGroup styleClass="table_row" layout="block">
32                                                 <div class="table_left">
33                                                         <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_OLD_ADDRESS}" />
34                                                 </div>
35
36                                                 <div class="table_right">
37                                                         <h:outputText value="#{contactController.emailAddress}" />
38                                                 </div>
39
40                                                 <div class="clear"></div>
41                                         </h:panelGroup>
42
43                                         <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
44                                 </fieldset>
45
46                                 <div class="para"></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 right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
52                                         <h:commandButton class="submit" type="submit" id="change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{userEmailChangeController.doUserChangeEmailAddress()}" />
53                                 </div>
54                         </h:form>
55                 </h:panelGroup>
56
57                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
58                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
59                 </ui:fragment>
60         </ui:define>
61 </ui:composition>