]> git.mxchange.org Git - addressbook-war.git/blob - web/admin/contact/unlink/admin_contact_landline_unlink.xhtml
Updated copyright year
[addressbook-war.git] / web / admin / contact / unlink / admin_contact_landline_unlink.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
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"
10         >
11
12         <ui:define name="metadata">
13                 <f:metadata>
14                         <f:viewParam
15                                 name="landLineId"
16                                 value="#{beanHelper.landLineNumber}"
17                                 converter="LandLineNumberConverter"
18                                 required="true"
19                                 requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}"
20                                 converterMessage="#{msg.PARAMETER_PHONE_ID_INVALID}"
21                                 />
22                         <f:viewParam
23                                 name="contactId"
24                                 value="#{beanHelper.contact}"
25                                 converter="ContactConverter"
26                                 required="true"
27                                 requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}"
28                                 converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}"
29                                 />
30                 </f:metadata>
31         </ui:define>
32
33         <ui:define name="document_admin_title">
34                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_LAND_LINE_NUMBER}" />
35         </ui:define>
36
37         <ui:define name="content_header">
38                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_LAND_LINE_NUMBER}" />
39         </ui:define>
40
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}" />
46                                 </div>
47
48                                 <div class="para">
49                                         <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
50                                 </div>
51
52                                 <div class="para">
53                                         <p:link
54                                                 outcome="admin_show_contact"
55                                                 value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}"
56                                                 title="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA_TITLE}"
57                                                 >
58                                                 <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
59                                         </p:link>
60                                 </div>
61
62                                 <div class="para">
63                                         <core:outputAdminLandLinePanelGrid
64                                                 landLineNumber="#{beanHelper.landLineNumber}"
65                                                 contact="#{beanHelper.contact}"
66                                                 renderShowLink="false"
67                                                 showAdminDropdownMenu="false"
68                                                 />
69                                 </div>
70
71                                 <p:panelGrid columns="2" layout="grid">
72                                         <p:commandButton
73                                                 type="submit"
74                                                 value="#{msg.BUTTON_ADMIN_UNLINK_LAND_LINE_NUMBER}"
75                                                 action="#{adminContactPhoneController.unlinkLandLineContactData()}"
76                                                 />
77                                 </p:panelGrid>
78                         </h:panelGroup>
79                 </h:form>
80
81                 <h:outputFormat
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}"
85                         >
86                         <f:param value="#{beanHelper.landLineNumber.phoneId}" />
87                         <f:param value="#{beanHelper.contact.contactId}" />
88                 </h:outputFormat>
89         </ui:define>
90 </ui:composition>