]> 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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         >
10
11         <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
12                 <ui:define name="login_title">
13                         <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_CHANGE_EMAIL_ADDRESS}" />
14                 </ui:define>
15
16                 <ui:define name="content_header">
17                         <h:outputText value="#{msg.CONTENT_TITLE_USER_LOGIN_CHANGE_EMAIL_ADDRESS}" />
18                 </ui:define>
19
20                 <ui:define name="content">
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                                         <div class="para">
28                                                 <fieldset class="fieldset" id="change_email">
29                                                         <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
30                                                                 <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
31                                                         </legend>
32
33                                                         <div class="table_row">
34                                                                 <div class="table_left">
35                                                                         <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_OLD_ADDRESS}" />
36                                                                 </div>
37
38                                                                 <div class="table_right">
39                                                                         <h:outputText value="#{contactController.emailAddress}" />
40                                                                 </div>
41
42                                                                 <div class="clear"></div>
43                                                         </div>
44
45                                                         <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" />
46                                                 </fieldset>
47                                         </div>
48
49                                         <ui:include src="/WEB-INF/templates/login/login_enter_current_password.tpl" />
50
51                                         <div class="table_footer">
52                                                 <h:commandButton class="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
53                                                 <h:commandButton class="submit" type="submit" id="change_email" value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}" action="#{emailChangeController.doChangeEmailAddress()}" />
54                                         </div>
55                                 </h:form>
56                         </h:panelGroup>
57
58                         <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_change_email_address')}">
59                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
60                                         <ui:param name="message" value="#{msg.ERROR_LOGIN_USER_CHANGE_EMAIL_ADDRESS_DISABLED}" />
61                                         <ui:param name="styleClass" value="errors" />
62                                 </ui:include>
63                         </ui:fragment>
64
65                         <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
66                                 <ui:include id="login_only" src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
67                         </ui:fragment>
68                 </ui:define>
69         </ui:composition>
70 </html>