]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_confirm_account.xhtml
Please cherry-pick:
[jjobs-war.git] / web / guest / user / user_confirm_account.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html
3         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
4         xmlns="http://www.w3.org/1999/xhtml"
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
10         <f:metadata>
11                 <f:viewParam name="confirmKey" value="#{userConfirmationLinkController.confirmationKey}" />
12                 <f:viewAction onPostback="true" action="#{userConfirmationLinkController.maybeConfirmUserAccount()}" />
13         </f:metadata>
14
15         <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
16                 <ui:define name="guest_title">
17                         <h:outputText value="#{msg.PAGE_TITLE_INDEX_CONFIRM_ACCOUNT}" />
18                 </ui:define>
19
20                 <ui:define name="content_header">
21                         <h:outputText value="#{msg.CONTENT_TITLE_INDEX_CONFIRM_ACCOUNT}" />
22                 </ui:define>
23
24                 <ui:define name="content">
25                         <ui:fragment rendered="#{not empty userConfirmationLinkController.confirmationKey}">
26                                 <h:panelGroup styleClass="table" layout="block" rendered="#{not empty beanHelper.user}">
27                                         <div class="table_header">
28                                                 <h:outputText value="#{msg.GUEST_CONFIRM_USER_ACCOUNT_DONE_TITLE}" />
29                                         </div>
30
31                                         <h:panelGroup styleClass="table_row" layout="block">
32                                                 <h:outputFormat value="#{msg.GUEST_USER_CONFIRM_ACCOUNT_DONE}">
33                                                         <f:param value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
34                                                         <f:param value="#{beanHelper.user.userContact.contactFirstName}" />
35                                                         <f:param value="#{beanHelper.user.userContact.contactFamilyName}" />
36                                                 </h:outputFormat>
37                                         </h:panelGroup>
38                                 </h:panelGroup>
39
40                                 <ui:fragment rendered="#{empty beanHelper.user}">
41                                         <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
42                                                 <ui:param name="message" value="#{msg.GUEST_CONFIRMATION_LINK_INVALID}" />
43                                                 <ui:param name="styleClass" value="errors" />
44                                         </ui:include>
45                                 </ui:fragment>
46                         </ui:fragment>
47
48                         <ui:fragment rendered="#{empty userConfirmationLinkController.confirmationKey}">
49                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
50                                         <ui:param name="message" value="#{msg.GUEST_CONFIRMATION_KEY_NOT_SET}" />
51                                         <ui:param name="styleClass" value="errors" />
52                                 </ui:include>
53                         </ui:fragment>
54                 </ui:define>
55         </ui:composition>
56 </html>