]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/unlink/admin_contact_fax_unlink.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / contact / unlink / admin_contact_fax_unlink.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
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         <ui:define name="metadata">
10                 <f:metadata>
11                         <f:viewParam name="phoneId" value="#{beanHelper.faxNumber}" converter="FaxNumberConverter" 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:viewAction onPostback="true" action="#{beanHelper.notifyControllerContactConverted()}" />
14                         <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerFaxNumberConverted()}" />
15                 </f:metadata>
16         </ui:define>
17
18         <ui:define name="admin_title">
19                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}" />
20         </ui:define>
21
22         <ui:define name="content_header">
23                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}" />
24         </ui:define>
25
26         <ui:define name="content">
27                 <h:form id="form_unlink_contact_fax" rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber == beanHelper.faxNumber}">
28                         <h:panelGroup styleClass="table" layout="block">
29                                 <div class="table_header">
30                                         <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_FAX_NUMBER_TITLE}" />
31                                 </div>
32
33                                 <div class="para">
34                                         <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
35                                 </div>
36
37                                 <div class="para">
38                                         <h:link outcome="admin_show_contact" value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}">
39                                                 <f:param name="contactId" value="#{adminContactPhoneController.contact.contactId}" />
40                                         </h:link>
41                                 </div>
42
43                                 <div class="para">
44                                         <ui:include src="/WEB-INF/templates/admin/fax/admin_fax_data.tpl">
45                                                 <ui:param name="isShowPage" value="#{false}" />
46                                                 <ui:param name="showAdminLinks" value="#{false}" />
47                                         </ui:include>
48                                 </div>
49
50                                 <div class="table_footer">
51                                         <h:commandButton styleClass="unlink_button" type="submit" id="unlink_fax" value="#{msg.BUTTON_ADMIN_UNLINK_FAX_NUMBER}" action="#{adminContactPhoneController.unlinkFaxContactData()}" />
52                                 </div>
53                         </h:panelGroup>
54                 </h:form>
55
56                 <widgets:outputMessageBox message="#{msg.ERROR_BEAN_HELPER_FAX_NUMBER_NOT_SET}" styleClass="errors" rendered="#{empty beanHelper.faxNumber}" />
57
58                 <widgets:outputMessageBox message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" styleClass="errors" rendered="#{empty beanHelper.contact}" />
59
60                 <h:outputFormat styleClass="errors" value="#{msg.ERROR_FAX_NUMBER_CONTACT_NOT_LINKED}" rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber != beanHelper.faxNumber}">
61                         <f:param value="#{adminContactPhoneController.phoneId}" />
62                         <f:param value="#{adminContactPhoneController.contact.contactId}" />
63                 </h:outputFormat>
64         </ui:define>
65 </ui:composition>