]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/unlink/admin_contact_mobile_unlink.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / contact / unlink / admin_contact_mobile_unlink.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="phoneId" value="#{beanHelper.mobileNumber}" converter="MobileNumberConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_PHONE_ID_INVALID}" />
12                 <f:viewParam name="contactId" value="#{beanHelper.contact}" converter="ContactConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}" />
13         </f:metadata>
14
15         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
16                 <ui:define name="admin_title">
17                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_MOBILE_NUMBER}" />
18                 </ui:define>
19
20                 <ui:define name="content_header">
21                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_MOBILE_NUMBER}" />
22                 </ui:define>
23
24                 <ui:define name="content">
25                         <h:form id="form_unlink_contact_mobile" rendered="#{not empty beanHelper.mobileNumber and not empty beanHelper.contact and beanHelper.contact.contactMobileNumber == beanHelper.mobileNumber}">
26                                 <h:panelGroup styleClass="table" layout="block">
27                                         <div class="table_header">
28                                                 <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_MOBILE_NUMBER_TITLE}" />
29                                         </div>
30
31                                         <div class="para">
32                                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
33                                         </div>
34
35                                         <div class="para">
36                                                 <h:link outcome="admin_show_contact">
37                                                         <h:outputText value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}" />
38                                                         <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
39                                                 </h:link>
40                                         </div>
41
42                                         <div class="para">
43                                                 <ui:include src="/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl">
44                                                         <ui:param name="isShowPage" value="#{false}" />
45                                                         <ui:param name="showAdminLinks" value="#{false}" />
46                                                 </ui:include>
47                                         </div>
48
49                                         <div class="table_footer">
50                                                 <h:commandButton styleClass="unlink_button" type="submit" id="unlink_mobile" value="#{msg.BUTTON_ADMIN_UNLINK_MOBILE_NUMBER}" action="#{adminContactPhoneController.unlinkMobileContactData()}" />
51                                         </div>
52                                 </h:panelGroup>
53                         </h:form>
54
55                         <ui:fragment rendered="#{empty beanHelper.mobileNumber}">
56                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
57                                         <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_MOBILE_NUMBER_NOT_SET}" />
58                                         <ui:param name="styleClass" value="errors" />
59                                 </ui:include>
60                         </ui:fragment>
61
62                         <ui:fragment rendered="#{empty beanHelper.contact}">
63                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
64                                         <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" />
65                                         <ui:param name="styleClass" value="errors" />
66                                 </ui:include>
67                         </ui:fragment>
68
69                         <h:outputFormat styleClass="errors" value="#{msg.ERROR_MOBILE_NUMBER_CONTACT_NOT_LINKED}" rendered="#{not empty beanHelper.mobileNumber and not empty beanHelper.contact and beanHelper.contact.contactMobileNumber != beanHelper.mobileNumber}">
70                                 <f:param value="#{beanHelper.mobileNumber.phoneId}" />
71                                 <f:param value="#{beanHelper.contact.contactId}" />
72                         </h:outputFormat>
73                 </ui:define>
74         </ui:composition>
75 </html>