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.mobileNumber}"
17 converter="MobileNumberConverter"
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_MOBILE_NUMBER}" />
37 <ui:define name="content_header">
38 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_MOBILE_NUMBER}" />
41 <ui:define name="content">
42 <h:form rendered="#{not empty beanHelper.mobileNumber and not empty beanHelper.contact and beanHelper.contact.contactMobileNumber == beanHelper.mobileNumber}">
43 <h:panelGroup styleClass="table" layout="block">
44 <div class="table-header">
45 <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_MOBILE_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:outputAdminMobilePanelGrid
64 mobileNumber="#{beanHelper.mobileNumber}"
65 contact="#{beanHelper.contact}"
66 renderShowLink="false"
67 showAdminDropdownMenu="false"
73 value="#{msg.BUTTON_ADMIN_UNLINK_MOBILE_NUMBER}"
74 action="#{adminContactMobileController.unlinkMobileContactData()}"
80 styleClass="alert-danger"
81 value="#{msg.ERROR_MOBILE_NUMBER_CONTACT_NOT_LINKED}"
82 rendered="#{not empty beanHelper.mobileNumber and not empty beanHelper.contact and beanHelper.contact.contactMobileNumber != beanHelper.mobileNumber}"
84 <f:param value="#{beanHelper.mobileNumber.mobileId}" />
85 <f:param value="#{beanHelper.contact.contactId}" />