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:ui="http://xmlns.jcp.org/jsf/facelets"
5 xmlns:h="http://xmlns.jcp.org/jsf/html"
6 xmlns:f="http://xmlns.jcp.org/jsf/core">
8 <ui:define name="metadata">
10 <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}" />
11 <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}" />
12 <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerContactConverted()}" />
13 <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerFaxNumberConverted()}" />
17 <ui:define name="admin_title">
18 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}" />
21 <ui:define name="content_header">
22 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}" />
25 <ui:define name="content">
26 <h:form id="form_unlink_contact_fax" rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber == beanHelper.faxNumber}">
27 <h:panelGroup styleClass="table" layout="block">
28 <div class="table_header">
29 <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_FAX_NUMBER_TITLE}" />
33 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
37 <h:link outcome="admin_show_contact" value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}">
38 <f:param name="contactId" value="#{adminContactPhoneController.contact.contactId}" />
43 <ui:include src="/WEB-INF/templates/admin/fax/admin_fax_data.tpl">
44 <ui:param name="isShowPage" value="#{false}" />
45 <ui:param name="showAdminLinks" value="#{false}" />
49 <div class="table_footer">
50 <h:commandButton styleClass="unlink_button" type="submit" id="unlink_fax" value="#{msg.BUTTON_ADMIN_UNLINK_FAX_NUMBER}" action="#{adminContactPhoneController.unlinkFaxContactData()}" />
55 <ui:fragment rendered="#{empty beanHelper.faxNumber}">
56 <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
57 <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_FAX_NUMBER_NOT_SET}" />
58 <ui:param name="styleClass" value="errors" />
62 <ui:fragment rendered="#{empty beanHelper.contact}">
63 <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
64 <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" />
65 <ui:param name="styleClass" value="errors" />
69 <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}">
70 <f:param value="#{adminContactPhoneController.phoneId}" />
71 <f:param value="#{adminContactPhoneController.contact.contactId}" />