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.landLineNumber}"
17 converter="LandLineNumberConverter"
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}"
33 <ui:define name="document_admin_title">
34 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_LAND_LINE_NUMBER}" />
37 <ui:define name="content_header">
38 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_LAND_LINE_NUMBER}" />
41 <ui:define name="content">
42 <h:form rendered="#{not empty beanHelper.landLineNumber and not empty beanHelper.contact and beanHelper.contact.contactLandLineNumber == beanHelper.landLineNumber}">
43 <h:panelGroup styleClass="table" layout="block">
44 <div class="table-header">
45 <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_LAND_LINE_NUMBER_TITLE}" />
49 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
54 outcome="admin_show_contact"
55 value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}"
56 title="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA_TITLE}"
58 <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
63 <core:outputAdminLandLinePanelGrid
64 landLineNumber="#{beanHelper.landLineNumber}"
65 contact="#{beanHelper.contact}"
66 renderShowLink="false"
67 showAdminDropdownMenu="false"
71 <p:panelGrid columns="2" layout="grid">
74 value="#{msg.BUTTON_ADMIN_UNLINK_LAND_LINE_NUMBER}"
75 action="#{adminContactPhoneController.unlinkLandLineContactData()}"
82 styleClass="alert-danger"
83 value="#{msg.ERROR_LAND_LINE_NUMBER_CONTACT_NOT_LINKED}"
84 rendered="#{not empty beanHelper.landLineNumber and not empty beanHelper.contact and beanHelper.contact.contactLandLineNumber != beanHelper.landLineNumber}"
86 <f:param value="#{beanHelper.landLineNumber.phoneId}" />
87 <f:param value="#{beanHelper.contact.contactId}" />