]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/admin/landline/admin_landline_list.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / landline / admin_landline_list.xhtml
index 354478e69cd3b8989551daab26c6d170cf77d585..fc4188113524a32242cfced1777d452bf941a792 100644 (file)
@@ -1,69 +1,68 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
-       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
-       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"
-       >
+<?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:widgets="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:composition template="/WEB-INF/templates/admin/admin_base.tpl">
-               <ui:define name="admin_title">
-                       <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_LAND_LINE_NUMBER}" />
-               </ui:define>
+       <ui:define name="document_admin_title">
+               <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_LAND_LINE_NUMBER}" />
+       </ui:define>
 
-               <ui:define name="content_header">
-                       <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_LAND_LINE_NUMBER}" />
-               </ui:define>
+       <ui:define name="content_header">
+               <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_LAND_LINE_NUMBER}" />
+       </ui:define>
 
-               <ui:define name="content">
-                       <h:dataTable id="table_list_landline" var="landLineNumber" value="#{phoneController.allLandLineNumbers()}" styleClass="table_full" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_LAND_LINES}" rendered="#{not phoneController.allLandLineNumbers().isEmpty()}">
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
-                                       </f:facet>
+       <ui:define name="content">
+               <p:dataTable
+                       id="table_list_landline"
+                       var="landLineNumber"
+                       value="#{phoneController.allLandLineNumbers()}"
+                       tableStyleClass="table table-full"
+                       paginator="true"
+                       rows="10"
+                       summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_LAND_LINES}"
+                       emptyMessage="#{msg.ADMIN_EMPTY_LIST_LANDLINE_NUMBER}"
+                       >
+                       <p:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
+                               </f:facet>
 
-                                       <h:link outcome="admin_show_landline">
-                                               <h:outputText value="#{landLineNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}" />
-                                               <f:param name="phoneId" value="#{landLineNumber.phoneId}" />
-                                       </h:link>
-                               </h:column>
+                               <p:link outcome="admin_show_landline" value="#{landLineNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_LANDLINE_NUMBER_TITLE}">
+                                       <f:param name="phoneId" value="#{landLineNumber.phoneId}" />
+                               </p:link>
+                       </p:column>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_NUMBER}" />
-                                       </f:facet>
+                       <p:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_NUMBER}" />
+                               </f:facet>
 
-                                       <h:outputText value="#{landLineNumber.phoneCountry.countryAbroadDialPrefix}#{landLineNumber.phoneCountry.countryPhoneCode} (#{landLineNumber.phoneAreaCode}) #{landLineNumber.phoneNumber}" />
-                               </h:column>
+                               <h:outputText value="#{landLineNumber.phoneCountry.countryAbroadDialPrefix}#{landLineNumber.phoneCountry.countryPhoneCode} (#{landLineNumber.phoneAreaCode}) #{landLineNumber.phoneNumber}" />
+                       </p:column>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
-                                       </f:facet>
+                       <p:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
+                               </f:facet>
 
-                                       <h:outputText value="#{landLineNumber.phoneEntryCreated.time}">
-                                               <f:convertDateTime type="both" />
-                                       </h:outputText>
-                               </h:column>
+                               <h:outputText value="#{landLineNumber.phoneEntryCreated.time}">
+                                       <f:convertDateTime type="both" />
+                               </h:outputText>
+                       </p:column>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
-                                       </f:facet>
+                       <p:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
+                               </f:facet>
 
-                                       <h:outputText value="#{landLineNumber.phoneEntryUpdated.time}">
-                                               <f:convertDateTime type="both" />
-                                       </h:outputText>
-                               </h:column>
-                       </h:dataTable>
-
-                       <ui:fragment rendered="#{phoneController.allLandLineNumbers().isEmpty()}">
-                               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
-                                       <ui:param name="message" value="#{msg.ADMIN_LIST_LAND_LINE_EMPTY}" />
-                                       <ui:param name="styleClass" value="errors" />
-                               </ui:include>
-                       </ui:fragment>
-               </ui:define>
-       </ui:composition>
-</html>
+                               <h:outputText value="#{landLineNumber.phoneEntryUpdated.time}">
+                                       <f:convertDateTime type="both" />
+                               </h:outputText>
+                       </p:column>
+               </p:dataTable>
+       </ui:define>
+</ui:composition>