]> 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                                 xmlns:p="http://primefaces.org/ui">
9
10         <ui:define name="login_title">
11                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_EMAIL_ADDRESS}" />
12         </ui:define>
13
14         <ui:define name="content_header">
15                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_EMAIL_ADDRESS}" />
16         </ui:define>
17
18         <ui:define name="content">
19                 <widgets:outputMessageBox id="error-user-change-email-disabled" message="#{msg.ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('user_change_email_address')}" />
20
21                 <h:panelGroup styleClass="table" layout="block" rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('user_change_email_address')}">
22                         <div class="table-header">
23                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
24                         </div>
25
26                         <h:form id="form_user_change_email_address">
27                                 <fieldset class="fieldset">
28                                         <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
29                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
30                                         </legend>
31
32                                         <h:panelGroup styleClass="table-row" layout="block">
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                                         </h:panelGroup>
41
42                                         <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
43                                 </fieldset>
44
45                                 <div class="para"></div>
46
47                                 <ui:include src="/WEB-INF/templates/login/login_enter_current_password.tpl" />
48
49                                 <div class="table-footer">
50                                         <p:commandButton class="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
51                                         <p:commandButton class="submit" type="submit" id="button_change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{userEmailChangeController.doUserChangeEmailAddress()}" />
52                                 </div>
53                         </h:form>
54                 </h:panelGroup>
55
56                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
57                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
58                 </ui:fragment>
59         </ui:define>
60 </ui:composition>