]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/unlink/admin_contact_fax_unlink.xhtml
68ae10749110ec504ab764d6a0004b87a20a14c7
[jjobs-war.git] / web / admin / contact / unlink / admin_contact_fax_unlink.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html
3         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6         xmlns:h="http://xmlns.jcp.org/jsf/html"
7         xmlns:f="http://xmlns.jcp.org/jsf/core"
8         >
9
10         <f:metadata>
11                 <f:viewParam name="phoneId" value="#{beanHelper.faxNumber}" converter="FaxNumberConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
12                 <f:viewParam name="contactId" value="#{beanHelper.contact}" converter="ContactConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}" />
13         </f:metadata>
14
15         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
16                 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}</ui:define>
17
18                 <ui:define name="content_header">
19                         #{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_FAX_NUMBER}
20                 </ui:define>
21
22                 <ui:define name="content">
23                         <h:form id="form_unlink_contact_landline" rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber == beanHelper.faxNumber}">
24                                 <h:panelGroup styleClass="table" layout="block">
25                                         <div class="table_header">
26                                                 <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_FAX_NUMBER_TITLE}" />
27                                         </div>
28
29                                         <div class="para">
30                                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
31                                         </div>
32
33                                         <div class="para">
34                                                 <h:link outcome="admin_show_contact">
35                                                         <h:outputText value="#{msg.ADMIN_SHOW_FULL_CONTACT_DATA}" />
36                                                         <f:param name="contactId" value="#{beanHelper.contact.contactId}" />
37                                                 </h:link>
38                                         </div>
39
40                                         <div class="para">
41                                                 <ui:include src="/WEB-INF/templates/admin/landline/admin_landline_data.tpl">
42                                                         <ui:param name="isShowPage" value="#{false}" />
43                                                         <ui:param name="showAdminLinks" value="#{false}" />
44                                                 </ui:include>
45                                         </div>
46
47                                         <div class="table_footer">
48                                                 <h:commandButton styleClass="unlink_button" type="submit" id="unlink_landline" value="#{msg.BUTTON_ADMIN_UNLINK_FAX_NUMBER}" action="#{adminContactPhoneController.unlinkFaxContactData()}" />
49                                         </div>
50                                 </h:panelGroup>
51                         </h:form>
52
53                         <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_FAX_NUMBER_NOT_SET}" rendered="#{empty beanHelper.faxNumber}" />
54
55                         <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" rendered="#{empty beanHelper.contact}" />
56
57                         <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}">
58                                 <f:param value="#{beanHelper.faxNumber.phoneId}" />
59                                 <f:param value="#{beanHelper.contact.contactId}" />
60                         </h:outputFormat>
61                 </ui:define>
62         </ui:composition>
63 </html>