]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/admin/mobile/admin_mobile_list.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / mobile / admin_mobile_list.xhtml
index ff224432d0b6a7dd93ed60d4a013bd1d88d584ce..26d03a54bfd9d5ae77ee607f3aabfa9be1f19e1d 100644 (file)
@@ -4,7 +4,8 @@
                                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:f="http://xmlns.jcp.org/jsf/core"
+                               xmlns:p="http://primefaces.org/ui">
 
        <ui:define name="admin_title">
                <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}" />
        </ui:define>
 
        <ui:define name="content">
-               <h:dataTable id="table_list_mobile" var="mobile" value="#{phoneController.allMobileNumbers()}" styleClass="table-full" headerClass="table-header-column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILES}" rendered="#{not phoneController.allMobileNumbers().isEmpty()}">
-                       <h:column>
+               <p:dataTable id="table-list-mobile-provider" var="mobileNumber" value="#{phoneController.allMobileNumbers()}" tableStyleClass="table table-full" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILES}" emptyMessage="#{msg.ADMIN_MOBILE_NUMBER_LIST_EMPTY}">
+                       <p:column>
                                <f:facet name="header">
-                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
+                                       <h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
                                </f:facet>
 
-                               <h:link outcome="admin_show_mobile" value="#{mobile.phoneId}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}">
-                                       <f:param name="phoneId" value="#{mobile.phoneId}" />
-                               </h:link>
-                       </h:column>
+                               <p:link outcome="admin_show_mobile" value="#{mobileNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_MOBILE_NUMBER_TITLE}">
+                                       <f:param name="phoneId" value="#{mobileNumber.phoneId}" />
+                               </p:link>
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
                                        <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_PROVIDER_NAME}" />
                                </f:facet>
 
-                               <h:link outcome="admin_show_mobile_provider" value="#{mobile.mobileProvider.providerName}">
-                                       <f:param name="providerId" value="#{mobile.mobileProvider.providerId}" />
-                               </h:link>
-                       </h:column>
+                               <p:link outcome="admin_show_mobile_provider" value="#{mobileNumber.mobileProvider.providerName}">
+                                       <f:param name="providerId" value="#{mobileNumber.mobileProvider.providerId}" />
+                               </p:link>
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
                                        <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_NUMBER_COMPLETE}" />
                                </f:facet>
 
-                               <h:outputText value="#{mobile.mobileProvider.providerCountry.countryExternalDialPrefix}#{mobile.mobileProvider.providerDialPrefix}-#{mobile.phoneNumber}" />
-                       </h:column>
+                               <h:outputText value="#{mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix}#{mobileNumber.mobileProvider.providerDialPrefix}-#{mobileNumber.phoneNumber}" />
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
                                        <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
                                </f:facet>
 
-                               <h:outputText value="#{mobile.phoneEntryCreated.time}">
+                               <h:outputText value="#{mobileNumber.phoneEntryCreated.time}">
                                        <f:convertDateTime type="both" />
                                </h:outputText>
-                       </h:column>
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
                                        <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
                                </f:facet>
 
-                               <h:outputText value="#{mobile.phoneEntryUpdated.time}">
+                               <h:outputText value="#{mobileNumber.phoneEntryUpdated.time}">
                                        <f:convertDateTime type="both" />
                                </h:outputText>
-                       </h:column>
-               </h:dataTable>
-
-               <widgets:outputMessageBox message="#{msg.ADMIN_LIST_MOBILE_EMPTY}" messageStyleClass="alert-danger" rendered="#{phoneController.allMobileNumbers().isEmpty()}" />
+                       </p:column>
+               </p:dataTable>
        </ui:define>
 </ui:composition>