]> git.mxchange.org Git - jjobs-war.git/blob - web/guest/user/user_resend_link.xhtml
Please cherry-pick:
[jjobs-war.git] / web / guest / user / user_resend_link.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/guest/guest_base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:core="http://mxchange.org/jsf/core/widgets"
6         xmlns:validator="http://mxchange.org/jsf/core/validators"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8         xmlns:h="http://xmlns.jcp.org/jsf/html"
9         xmlns:f="http://xmlns.jcp.org/jsf/core"
10         xmlns:p="http://primefaces.org/ui">
11
12         <ui:define name="document_guest_title">
13                 <h:outputText value="#{msg.PAGE_TITLE_INDEX_RESEND_LINK}" />
14         </ui:define>
15
16         <ui:define name="content_header">
17                 <h:outputText value="#{msg.CONTENT_TITLE_INDEX_RESEND_LINK}" />
18         </ui:define>
19
20         <ui:define name="content">
21                 <core:outputMessageBox id="error-user-resend-link-disabled" message="#{msg.ERROR_GUEST_USER_RESEND_LINK_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('user_resend_confirmation_link')}" />
22
23                 <h:form id="form_resend_link" rendered="#{featureController.isFeatureEnabled('user_resend_confirmation_link')}">
24                         <h:panelGroup styleClass="table" layout="block">
25                                 <div class="table-header">
26                                         <h:outputText value="#{msg.GUEST_RESEND_LINK_TITLE}" />
27                                 </div>
28
29                                 <fieldset class="fieldset">
30                                         <legend title="#{msg.RESEND_CONFIRMATION_LINK_LEGEND_TITLE}">
31                                                 <h:outputText value="#{msg.RESEND_CONFIRMATION_LINK_LEGEND}" />
32                                         </legend>
33
34                                         <h:panelGroup styleClass="table-row" layout="block">
35                                                 <div class="table-left">
36                                                         <p:outputLabel for="emailAddress" value="#{msg.GUEST_RESEND_LINK_ENTER_EMAIL_ADDRESS}" />
37                                                 </div>
38
39                                                 <div class="table-right">
40                                                         <p:inputText id="emailAddress" size="20" maxlength="255" value="#{userResendConfirmationController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
41                                                                 <validator:emailAddressValidator />
42                                                         </p:inputText>
43                                                 </div>
44                                         </h:panelGroup>
45                                 </fieldset>
46
47                                 <h:panelGroup styleClass="error-container" layout="block">
48                                         <p:message for="emailAddress" />
49                                 </h:panelGroup>
50
51                                 <h:panelGroup styleClass="table-row" layout="block">
52                                         <h:outputText value="#{msg.GUEST_RESEND_CONFIRMATION_LINK_NOTICE}" />
53                                 </h:panelGroup>
54
55                                 <div class="table-footer">
56                                         <p:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
57                                         <p:commandButton styleClass="submit" type="submit" id="submit_resend_link" value="#{msg.BUTTON_RESEND_CONFIRMATION_LINK}" action="#{userResendConfirmationController.doResendLink()}" />
58                                 </div>
59                         </h:panelGroup>
60                 </h:form>
61         </ui:define>
62 </ui:composition>