]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/confirm_account.xhtml
Continued with switching vanilla HTML -> JSF2.0 tags: (please cherry-pick)
[jjobs-war.git] / web / guest / 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="#{confirmationLinkController.confirmationKey}" />
12                 <f:viewAction onPostback="true" action="#{confirmationLinkController.maybeConfirmUserAccount()}" />
13         </f:metadata>
14
15         <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
16                 <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_CONFIRM_ACCOUNT}</ui:define>
17
18                 <ui:define name="content_header">
19                         #{msg.CONTENT_TITLE_INDEX_CONFIRM_ACCOUNT}
20                 </ui:define>
21
22                 <ui:define name="content">
23                         <ui:fragment rendered="#{not empty confirmationLinkController.confirmationKey}">
24                                 <h:panelGroup styleClass="table" layout="block" rendered="#{not empty beanHelper.user}">
25                                         <div class="table_header">
26                                                 <h:outputText value="#{msg.GUEST_CONFIRM_USER_ACCOUNT_DONE_TITLE}" />
27                                         </div>
28
29                                         <div class="table_row">
30                                                 <h:outputFormat value="#{msg.GUEST_USER_CONFIRM_ACCOUNT_DONE}">
31                                                         <f:param value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
32                                                         <f:param value="#{beanHelper.user.userContact.contactFirstName}" />
33                                                         <f:param value="#{beanHelper.user.userContact.contactFamilyName}" />
34                                                 </h:outputFormat>
35                                         </div>
36                                 </h:panelGroup>
37
38                                 <h:outputText styleClass="errors" value="#{msg.GUEST_CONFIRMATION_LINK_INVALID}" rendered="#{empty beanHelper.user}" />
39                         </ui:fragment>
40
41                         <ui:fragment rendered="#{empty confirmationLinkController.confirmationKey}">
42                                 <h:outputText styleClass="errors" value="#{msg.GUEST_CONFIRMATION_KEY_NOT_SET}" />
43                         </ui:fragment>
44                 </ui:define>
45         </ui:composition>
46 </html>