<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:widgets="http://mxchange.org/jsf/core/widgets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:p="http://primefaces.org/ui"
+ >
- <h:panelGrid id="landline_data" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_LAND_LINE_NUMBER_DATA}" headerClass="table-header-column" styleClass="table table-medium" columns="2" rendered="#{empty rendered or rendered == true}">
+ <!--
+ @TODO: summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_LAND_LINE_NUMBER_DATA}"
+ -->
+ <p:panelGrid
+ columns="2"
+ rendered="#{empty rendered or rendered == true}"
+ >
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_HEADER_SHOW_LAND_LINE_NUMBER_DATA}" />
+ <h:outputText value="#{msg.ADMIN_SHOW_LAND_LINE_NUMBER_DATA_HEADER}" />
</f:facet>
- <h:column>
+ <p:column>
<h:panelGroup>
- <h:outputLabel for="landLineNumberId" styleClass="table-data-label" value="#{msg.ADMIN_ID_NUMBER}" />
+ <p:outputLabel for="landLineNumberId" styleClass="table-data-label" value="#{msg.ADMIN_LABEL_ID_NUMBER}" />
<h:outputText id="landLineNumberId" styleClass="table-data-field" value="#{landLineNumber.phoneId}" />
- <h:message for="landLineNumberId" errorClass="alert-danger" fatalClass="alert-danger" warnClass="alert-warning" />
+ <p:message for="landLineNumberId" />
</h:panelGroup>
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel for="landLineNumber" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_LAND_LINE_NUMBER_COMPLETE}" />
+ <p:column>
+ <p:outputLabel for="landLineNumber" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_LAND_LINE_NUMBER_COMPLETE}" />
- <h:outputText id="landLineNumber" styleClass="table-data-field" value="#{landLineNumber.phoneCountry.countryAbroadDialPrefix}#{landLineNumber.phoneCountry.countryPhoneCode} (#{landLineNumber.phoneAreaCode}) #{landLineNumber.phoneNumber}" />
- </h:column>
+ <h:outputText id="landLineNumber" styleClass="table-data-field" value="#{beanHelper.renderPhoneNumber(landLineNumber)}" />
+ </p:column>
- <h:column>
- <h:outputLabel for="landLineCreated" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
+ <p:column>
+ <p:outputLabel for="landLineCreated" styleClass="table-data-label" value="#{msg.ENTRY_CREATED_HEADER}" />
- <h:outputText id="landLineCreated" styleClass="table-data-field" value="#{landLineNumber.phoneEntryCreated.time}">
- <f:convertDateTime for="contactCreated" type="both" />
+ <h:outputText id="landLineCreated" styleClass="table-data-field" value="#{landLineNumber.phoneEntryCreated}">
+ <f:convertDateTime type="both" />
</h:outputText>
- </h:column>
+ </p:column>
- <h:column>
- <h:outputLabel for="landLineUpdated" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
+ <p:column>
+ <p:outputLabel for="landLineUpdated" styleClass="table-data-label" value="#{msg.ENTRY_UPDATED_HEADER}" />
- <h:outputText id="landLineUpdated" styleClass="table-data-field" value="#{landLineNumber.phoneEntryUpdated.time}">
- <f:convertDateTime for="contactUpdated" type="both" />
+ <h:outputText id="landLineUpdated" styleClass="table-data-field" value="#{landLineNumber.phoneEntryUpdated}">
+ <f:convertDateTime type="both" />
</h:outputText>
- </h:column>
+ </p:column>
- <h:column rendered="#{empty showAdminLinks or showAdminLinks == true}">
- <h:outputLabel styleClass="table-data-label" value="#{msg.ADMIN_SHOW_ADMINISTRATIVE_LINKS}" />
+ <p:column
+ rendered="#{empty showAdminDropdownMenu or showAdminDropdownMenu == true}"
+ >
+ <p:outputLabel styleClass="table-data-label" value="#{msg.ADMIN_SHOW_ADMINISTRATIVE_LINKS}" />
- <div class="table-data-field">
- <widgets:outputAdminLandLineLinks landLineNumber="#{landLineNumber}" contact="#{contact}" isShowPage="#{isShowPage}" />
- </div>
- </h:column>
- </h:panelGrid>
+ <h:panelGroup styleClass="table-data-field" layout="block">
+ <p:menuButton
+ value="#{msg.OPTIONS}"
+ rendered="#{empty rendered or rendered}"
+ >
+ <p:menuitem
+ outcome="admin_show_landline"
+ value="#{msg.ADMIN_LINK_SHOW_SHORT}"
+ title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}"
+ >
+ <f:param name="landLineId" value="#{landLineNumber.phoneId}" />
+ </p:menuitem>
+
+ <p:menuitem
+ outcome="admin_edit_landline"
+ value="#{msg.ADMIN_LINK_EDIT_SHORT}"
+ title="#{msg.ADMIN_LINK_EDIT_LAND_LINE_NUMBER_TITLE}"
+ >
+ <f:param name="landLineId" value="#{landLineNumber.phoneId}" />
+ </p:menuitem>
+
+ <p:menuitem
+ outcome="admin_unlink_contact_landline"
+ rendered="#{not empty contact}"
+ >
+ <h:outputText
+ styleClass="link-warning"
+ value="#{msg.ADMIN_LINK_UNLINK_SHORT}"
+ title="#{msg.ADMIN_LINK_UNLINK_LAND_LINE_NUMBER_CONTACT_TITLE}"
+ />
+ <f:param name="landLineId" value="#{landLineNumber.phoneId}" />
+ <f:param name="contactId" value="#{contact.contactId}" />
+ </p:menuitem>
+
+ <p:menuitem
+ outcome="admin_delete_landline"
+ >
+ <h:outputText
+ styleClass="link-danger"
+ value="#{msg.ADMIN_LINK_DELETE_SHORT}"
+ title="#{msg.ADMIN_LINK_DELETE_LAND_LINE_NUMBER_TITLE}"
+ />
+ <f:param name="landLineId" value="#{landLineNumber.phoneId}" />
+ </p:menuitem>
+ </p:menuButton>
+ </h:panelGroup>
+ </p:column>
+ </p:panelGrid>
</ui:composition>