]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/user/admin_user_resend_confirmation_link.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / user / admin_user_resend_confirmation_link.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         <ui:define name="metadata">
11                 <f:metadata>
12                         <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
13                         <f:viewAction onPostback="true" action="#{beanHelper.copyUserToController()}" />
14                 </f:metadata>
15         </ui:define>
16
17         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
18                 <ui:define name="admin_title">
19                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK}" />
20                 </ui:define>
21
22                 <ui:define name="content_header">
23                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK}" />
24                 </ui:define>
25
26                 <ui:define name="content">
27                         <ui:fragment rendered="#{empty beanHelper.user}">
28                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
29                                         <ui:param name="message" value="#{msg.ERROR_USER_ID_NOT_FOUND}" />
30                                         <ui:param name="styleClass" value="errors" />
31                                 </ui:include>
32                         </ui:fragment>
33
34                         <h:form id="form_admin_user_unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
35                                 <h:panelGroup styleClass="table_medium" layout="block">
36                                         <div class="table_header">
37                                                 <h:outputFormat value="#{msg.ADMIN_RESEND_USER_CONFIRMATION_LINK_TITLE}">
38                                                         <f:param value="#{beanHelper.user.userName}" />
39                                                         <f:param value="#{beanHelper.user.userId}" />
40                                                 </h:outputFormat>
41                                         </div>
42
43                                         <div class="para">
44                                                 <div class="table_data_label">
45                                                         <h:outputText value="#{msg.ADMIN_SHOW_USER_ID}" />
46                                                 </div>
47
48                                                 <div class="table_data_field">
49                                                         <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{beanHelper.user.userId}">
50                                                                 <f:param name="userId" value="#{beanHelper.user.userId}" />
51                                                         </h:link>
52                                                 </div>
53                                         </div>
54
55                                         <div class="para">
56                                                 <div class="table_data_label">
57                                                         <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
58                                                 </div>
59
60                                                 <div class="table_data_field">
61                                                         <h:outputText id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
62                                                 </div>
63                                         </div>
64
65                                         <div class="para">
66                                                 <div class="table_data_label">
67                                                         <h:outputLabel for="contactFirstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
68                                                 </div>
69
70                                                 <div class="table_data_field">
71                                                         <h:outputText id="contactFirstName" value="#{beanHelper.user.userContact.contactFirstName}" />
72                                                 </div>
73                                         </div>
74
75                                         <div class="para">
76                                                 <div class="table_data_label">
77                                                         <h:outputLabel for="contactFamilyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
78                                                 </div>
79
80                                                 <div class="table_data_field">
81                                                         <h:outputText id="contactFamilyName" value="#{beanHelper.user.userContact.contactFamilyName}" />
82                                                 </div>
83                                         </div>
84
85                                         <div class="para">
86                                                 <h:outputText styleClass="notice" value="#{msg.ADMIN_RESEND_USER_CONFIRMATION_LINK_NOTICE}" />
87                                         </div>
88
89                                         <div class="table_footer">
90                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
91
92                                                 <h:commandButton styleClass="submit" type="submit" action="#{adminUserController.resendConfirmationLink(beanHelper.user)}" value="#{msg.BUTTON_ADMIN_RESEND_USER_CONFIRMATION_LINK_ACCOUNT}" />
93                                         </div>
94                                 </h:panelGroup>
95                         </h:form>
96
97                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_RESEND_USER_CONFIRMATION_LINK_ACCOUNT_UNLOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'CONFIRMED'}">
98                                 <f:param value="#{beanHelper.user.userName}" />
99                                 <f:param value="#{beanHelper.user.userId}" />
100                         </h:outputFormat>
101
102                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_ADMIN_CANNOT_RESEND_USER_CONFIRMATION_LINK_ACCOUNT_LOCKED}" rendered="#{beanHelper.user.userAccountStatus == 'LOCKED'}">
103                                 <f:param value="#{beanHelper.user.userName}" />
104                                 <f:param value="#{beanHelper.user.userId}" />
105                         </h:outputFormat>
106                 </ui:define>
107         </ui:composition>
108 </html>