1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/admin/admin_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:core="http://mxchange.org/jsf/core/widgets"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:f="http://xmlns.jcp.org/jsf/core"
9 xmlns:p="http://primefaces.org/ui"
12 <ui:define name="metadata">
16 value="#{beanHelper.faxNumber}"
17 converter="FaxNumberConverter"
19 requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}"
20 converterMessage="#{msg.PARAMETER_PHONE_ID_INVALID}"
24 value="#{beanHelper.contact}"
25 converter="ContactConverter"
27 requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}"
28 converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}"
30 <f:viewAction action="#{beanHelper.notifyControllerContactConverted()}" />
31 <f:viewAction action="#{beanHelper.notifyControllerFaxNumberConverted()}" />
35 <ui:define name="document_admin_title">
36 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}" />
39 <ui:define name="content_header">
40 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}" />
43 <ui:define name="content">
45 rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber == beanHelper.faxNumber}"
47 <h:inputHidden value="#{adminContactPhoneController.contact}" />
48 <h:inputHidden value="#{adminContactPhoneController.phoneId}" />
50 <h:panelGroup styleClass="table" layout="block">
51 <div class="table-header">
52 <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_FAX_NUMBER_TITLE}" />
56 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
61 outcome="admin_show_contact"
62 value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}"
63 title="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA_TITLE}"
65 <f:param name="contactId" value="#{adminContactPhoneController.contact.contactId}" />
70 <core:outputAdminFaxPanelGrid
71 faxNumber="#{beanHelper.faxNumber}"
72 contact="#{beanHelper.contact}"
73 renderShowLink="false"
74 showAdminDropdownMenu="false"
78 <p:panelGrid columns="2" layout="grid">
81 value="#{msg.BUTTON_ADMIN_UNLINK_FAX_NUMBER}"
82 action="#{adminContactPhoneController.unlinkFaxContactData()}"
89 styleClass="alert-danger"
90 value="#{msg.ERROR_FAX_NUMBER_CONTACT_NOT_LINKED}"
91 rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber != beanHelper.faxNumber}"
93 <f:param value="#{adminContactPhoneController.phoneId}" />
94 <f:param value="#{adminContactPhoneController.contact.contactId}" />