]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_user_change_email_address.xhtml
Updated copyright year
[jjobs-war.git] / web / user / login_user_change_email_address.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/login/user/user_base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:core="http://mxchange.org/jsf/core/widgets"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:p="http://primefaces.org/ui"
9         >
10
11         <ui:define name="document_login_title">
12                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_EMAIL_ADDRESS}" />
13         </ui:define>
14
15         <ui:define name="login_content_header">
16                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_EMAIL_ADDRESS}" />
17         </ui:define>
18
19         <ui:define name="content">
20                 <core:outputMessageBox
21                         panelGroupId="errorUserChangeEmailDisabled"
22                         message="#{msg.ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED}"
23                         messageStyleClass="alert-danger"
24                         rendered="#{not featureController.isFeatureEnabled('user_change_email_address')}"
25                         />
26
27                 <h:panelGroup
28                         styleClass="table"
29                         layout="block"
30                         rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('user_change_email_address')}"
31                         >
32                         <div class="table-header">
33                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
34                         </div>
35
36                         <h:form>
37                                 <fieldset class="fieldset">
38                                         <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
39                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
40                                         </legend>
41
42                                         <h:panelGroup styleClass="table-row" layout="block">
43                                                 <div class="table-left">
44                                                         <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_OLD_ADDRESS}" />
45                                                 </div>
46
47                                                 <div class="table-right">
48                                                         <h:outputText value="#{contactController.emailAddress}" />
49                                                 </div>
50                                         </h:panelGroup>
51
52                                         <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
53                                 </fieldset>
54
55                                 <div class="para"></div>
56
57                                 <ui:include src="/WEB-INF/templates/login/login_enter_current_password.tpl" />
58
59                                 <p:panelGrid columns="2" layout="grid">
60                                         <p:commandButton
61                                                 type="reset"
62                                                 value="#{msg.BUTTON_RESET_FORM}"
63                                                 />
64
65                                         <p:commandButton
66                                                 type="submit"
67                                                 value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}"
68                                                 action="#{userEmailChangeController.doUserChangeEmailAddress()}"
69                                                 />
70                                 </p:panelGrid>
71                         </h:form>
72                 </h:panelGroup>
73
74                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
75                         <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
76                 </ui:fragment>
77         </ui:define>
78 </ui:composition>