]> 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}" messageStyleClass="alert-danger" 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                                         </h:panelGroup>
40
41                                         <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
42                                 </fieldset>
43
44                                 <div class="para"></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 divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
50                                         <h:commandButton class="submit" type="submit" id="change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{userEmailChangeController.doUserChangeEmailAddress()}" />
51                                 </div>
52                         </h:form>
53                 </h:panelGroup>
54
55                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
56                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
57                 </ui:fragment>
58         </ui:define>
59 </ui:composition>