<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
+<ui:composition
+ template="/WEB-INF/templates/admin/admin_base.tpl"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:core="http://mxchange.org/jsf/core/widgets"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ xmlns:p="http://primefaces.org/ui"
+ >
<ui:define name="metadata">
<f:metadata>
- <f:viewParam name="phoneId" value="#{beanHelper.faxNumber}" converter="FaxNumberConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}" />
- <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerFaxNumberConverted()}" />
+ <f:viewParam
+ name="faxId"
+ value="#{beanHelper.faxNumber}"
+ converter="FaxNumberConverter"
+ required="true"
+ requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}"
+ converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}"
+ />
+ <f:viewAction action="#{beanHelper.notifyControllerFaxNumberConverted()}" />
</f:metadata>
</ui:define>
- <ui:define name="admin_title">
+ <ui:define name="document_admin_title">
<h:outputText value="#{msg.PAGE_TITLE_ADMIN_SHOW_FAX_NUMBER}" />
</ui:define>
</ui:define>
<ui:define name="content">
- <ui:include src="/WEB-INF/templates/admin/fax/admin_fax_data.tpl">
- <ui:param name="isShowPage" value="true" />
- </ui:include>
-
- <h:dataTable id="contact_fax_link" var="contact" value="#{contactPhoneController.allCurrentFaxNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" headerClass="table-header-column" styleClass="table table-medium">
+ <core:outputAdminFaxPanelGrid faxNumber="#{beanHelper.faxNumber}" />
+
+ <p:dataTable
+ id="contact_fax_link"
+ var="contact"
+ value="#{contactPhoneController.allCurrentFaxNumberContacts()}"
+ summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}"
+ >
<f:facet name="header">
- <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_FAX_NUMBER_LINKS}">
+ <h:outputFormat value="#{msg.ADMIN_SHOW_FAX_NUMBER_LINKS_HEADER}">
<f:param value="#{beanHelper.faxNumber.phoneId}" />
</h:outputFormat>
</f:facet>
- <h:column>
- <h:outputLabel for="contactId" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_ID}" />
+ <p:column>
+ <p:outputLabel for="contactId" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_ID}" />
- <h:link id="contactId" styleClass="table-data-field" outcome="admin_show_contact" value="#{contact.contactId}">
+ <p:link
+ id="contactId"
+ styleClass="table-data-field"
+ outcome="admin_show_contact"
+ value="#{contact.contactId}"
+ >
<f:param name="contactId" value="#{contact.contactId}" />
- </h:link>
- </h:column>
+ </p:link>
+ </p:column>
- <h:column>
- <h:outputLabel for="contactPersonalTitle" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
+ <p:column>
+ <p:outputLabel for="contactPersonalTitle" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
<h:outputText id="contactPersonalTitle" styleClass="table-data-field" value="#{msg[contact.contactPersonalTitle.messageKey]}" />
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel for="contactTitle" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
+ <p:column>
+ <p:outputLabel for="contactTitle" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
<h:outputText id="contactTitle" styleClass="table-data-field" value="#{contact.contactTitle}" />
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel for="contactFirstName" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
+ <p:column>
+ <p:outputLabel for="contactFirstName" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
<h:outputText id="contactFirstName" styleClass="table-data-field" value="#{contact.contactFirstName}" />
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel for="contactFamilyName" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
+ <p:column>
+ <p:outputLabel for="contactFamilyName" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
<h:outputText id="contactFamilyName" styleClass="table-data-field" value="#{contact.contactFamilyName}" />
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel for="contactEmailAddress" styleClass="table-data-label" value="#{msg.ADMIN_CONTACT_EMAIL_ADDRESS}" />
+ <p:column>
+ <p:outputLabel for="contactEmailAddress" styleClass="table-data-label" value="#{msg.DATA_EMAIL_ADDRESS}" />
- <h:outputLink id="contactEmailAddress" styleClass="table-data-field" value="mailto:#{contact.contactEmailAddress}">
+ <p:link
+ id="contactEmailAddress"
+ styleClass="table-data-field"
+ href="mailto:#{contact.contactEmailAddress}"
+ >
<h:outputText value="#{contact.contactEmailAddress}" />
</h:outputLink>
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel styleClass="table-data-label" value="#{msg.ADMIN_UNLINK_DATA}" />
+ <p:column>
+ <p:outputLabel styleClass="table-data-label" value="#{msg.ADMIN_UNLINK_DATA}" />
<div class="table-data-field">
<ul class="navbar-mini">
<li class="navlink-mini">
- <h:link outcome="admin_unlink_contact_fax">
- <h:outputText styleClass="link-warning" value="#{msg.ADMIN_LINK_UNLINK_SHORT}" title="#{msg.ADMIN_LINK_UNLINK_SHORT_TITLE}" />
- <f:param name="phoneId" value="#{beanHelper.faxNumber.phoneId}" />
+ <p:link
+ outcome="admin_unlink_contact_fax"
+ >
+ <h:outputText styleClass="link-warning" value="#{msg.ADMIN_LINK_UNLINK_SHORT}" title="#{msg.ADMIN_LINK_UNLINK_FAX_NUMBER_CONTACT_TITLE}" />
+ <f:param name="faxId" value="#{beanHelper.faxNumber.phoneId}" />
<f:param name="contactId" value="#{contact.contactId}" />
- </h:link>
+ </p:link>
</li>
</ul>
</div>
- </h:column>
- </h:dataTable>
+ </p:column>
+ </p:dataTable>
</ui:define>
</ui:composition>