]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/resources/tags/admin/panel_grids/landline/admin_landline_data.tpl
Updated copyright year
[jjobs-war.git] / web / WEB-INF / resources / tags / admin / panel_grids / landline / admin_landline_data.tpl
index 81292c97d0dc2342e17ec015b9766e6442f73df5..9ad30767835870b26b4308386f76207702a8156e 100644 (file)
@@ -1,7 +1,6 @@
 <?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"
        <!--
        @TODO: summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_LAND_LINE_NUMBER_DATA}"
        -->
-       <p:panelGrid columns="2" styleClass="table table-full" rendered="#{empty rendered or rendered == true}">
+       <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>
-                               <p: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}" />
 
                                <p:message for="landLineNumberId" />
                        </h:panelGroup>
-               </h:column>
+               </p:column>
 
-               <h:column>
+               <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>
-                       <p: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>
-                       <p: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 showAdminMiniLinks or showAdminMiniLinks == 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:outputLandLineNumberAdminMiniLinks landLineNumber="#{landLineNumber}" contact="#{contact}" renderShowLink="#{renderShowLink}" />
+                               <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>
-               </h:column>
+               </p:column>
        </p:panelGrid>
 </ui:composition>