<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:links="http://mxchange.org/jsf/core/links"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
</p:column>
<p:column>
- <p:outputLabel for="landLineCreated" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
+ <p:outputLabel for="landLineCreated" styleClass="table-data-label" value="#{msg.ENTRY_CREATED_HEADER}" />
<h:outputText id="landLineCreated" styleClass="table-data-field" value="#{landLineNumber.phoneEntryCreated}">
<f:convertDateTime type="both" />
</p:column>
<p:column>
- <p:outputLabel for="landLineUpdated" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
+ <p:outputLabel for="landLineUpdated" styleClass="table-data-label" value="#{msg.ENTRY_UPDATED_HEADER}" />
<h:outputText id="landLineUpdated" styleClass="table-data-field" value="#{landLineNumber.phoneEntryUpdated}">
<f:convertDateTime type="both" />
</h:outputText>
</p:column>
- <p:column rendered="#{empty showAdminDropdownMenu or showAdminDropdownMenu == true}">
+ <p:column
+ rendered="#{empty showAdminDropdownMenu or showAdminDropdownMenu == true}"
+ >
<p:outputLabel styleClass="table-data-label" value="#{msg.ADMIN_SHOW_ADMINISTRATIVE_LINKS}" />
<h:panelGroup styleClass="table-data-field" layout="block">
- <links:outputLandLineNumberAdminDropdownMenu landLineNumber="#{landLineNumber}" contact="#{contact}" renderShowLink="#{renderShowLink == true}" />
+ <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>