]> 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:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="login_title">
9                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_EMAIL_ADDRESS}" />
10         </ui:define>
11
12         <ui:define name="content_header">
13                 <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_USER_CHANGE_EMAIL_ADDRESS}" />
14         </ui:define>
15
16         <ui:define name="content">
17                 <h:panelGroup styleClass="table" layout="block" rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('user_change_email_address')}">
18                         <div class="table_header">
19                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
20                         </div>
21
22                         <h:form id="form_user_change_email_address">
23                                 <fieldset class="fieldset" id="change_email">
24                                         <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
25                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
26                                         </legend>
27
28                                         <h:panelGroup styleClass="table_row" layout="block">
29                                                 <div class="table_left">
30                                                         <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_OLD_ADDRESS}" />
31                                                 </div>
32
33                                                 <div class="table_right">
34                                                         <h:outputText value="#{contactController.emailAddress}" />
35                                                 </div>
36
37                                                 <div class="clear"></div>
38                                         </h:panelGroup>
39
40                                         <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
41                                 </fieldset>
42
43                                 <div class="para"></div>
44
45                                 <ui:include src="/WEB-INF/templates/login/login_enter_current_password.tpl" />
46
47                                 <div class="table_footer">
48                                         <h:commandButton class="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
49                                         <h:commandButton class="submit" type="submit" id="change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{userEmailChangeController.doUserChangeEmailAddress()}" />
50                                 </div>
51                         </h:form>
52                 </h:panelGroup>
53
54                 <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_change_email_address')}">
55                         <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
56                                 <ui:param name="message" value="#{msg.ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED}" />
57                                 <ui:param name="styleClass" value="errors" />
58                         </ui:include>
59                 </ui:fragment>
60
61                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
62                         <ui:include id="login_only" src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
63                 </ui:fragment>
64         </ui:define>
65 </ui:composition>