]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/admin/mobile/admin_mobile_list.xhtml
WIP: Please cherry-pick:
[jjobs-war.git] / web / admin / mobile / admin_mobile_list.xhtml
index daf4f5bb13dd9e276ecb57388d9141c072928ba2..8f0ea33036ec976b289a4498c5b0fd15935b31c7 100644 (file)
@@ -1,73 +1,74 @@
-<!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:ui="http://xmlns.jcp.org/jsf/facelets"
+                               xmlns:h="http://xmlns.jcp.org/jsf/html"
+                               xmlns:f="http://xmlns.jcp.org/jsf/core">
 
-       <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
-               <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}</ui:define>
+       <ui:define name="admin_title">
+               <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}" />
+       </ui:define>
 
-               <ui:define name="content_header">
-                       #{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}
-               </ui:define>
+       <ui:define name="content_header">
+               <h:outputText value="#{msg.CONTENT_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>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
-                                       </f:facet>
+       <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>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
+                               </f:facet>
 
-                                       <h:link outcome="admin_show_mobile">
-                                               <h:outputText value="#{mobile.phoneId}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}" />
-                                               <f:param name="phoneId" value="#{mobile.phoneId}" />
-                                       </h:link>
-                               </h:column>
+                               <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>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_PROVIDER_NAME}" />
-                                       </f:facet>
+                       <h:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_PROVIDER_NAME}" />
+                               </f:facet>
 
-                                       <h:link outcome="admin_show_mobile_provider">
-                                               <f:param name="providerId" value="#{mobile.mobileProvider.providerId}" />
-                                               <h:outputText value="#{mobile.mobileProvider.providerName}" />
-                                       </h:link>
-                               </h:column>
+                               <h:link outcome="admin_show_mobile_provider" value="#{mobile.mobileProvider.providerName}">
+                                       <f:param name="providerId" value="#{mobile.mobileProvider.providerId}" />
+                               </h:link>
+                       </h:column>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_NUMBER_COMPLETE}" />
-                                       </f:facet>
+                       <h: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="#{mobile.mobileProvider.providerCountry.countryExternalDialPrefix}#{mobile.mobileProvider.providerDialPrefix}-#{mobile.phoneNumber}" />
+                       </h:column>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
-                                       </f:facet>
+                       <h:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
+                               </f:facet>
 
-                                       <h:outputText value="#{mobile.phoneEntryCreated.time}">
-                                               <f:convertDateTime type="both" />
-                                       </h:outputText>
-                               </h:column>
+                               <h:outputText value="#{mobile.phoneEntryCreated.time}">
+                                       <f:convertDateTime type="both" />
+                               </h:outputText>
+                       </h:column>
 
-                               <h:column>
-                                       <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
-                                       </f:facet>
+                       <h:column>
+                               <f:facet name="header">
+                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
+                               </f:facet>
 
-                                       <h:outputText value="#{mobile.phoneEntryUpdated.time}">
-                                               <f:convertDateTime type="both" />
-                                       </h:outputText>
-                               </h:column>
-                       </h:dataTable>
+                               <h:outputText value="#{mobile.phoneEntryUpdated.time}">
+                                       <f:convertDateTime type="both" />
+                               </h:outputText>
+                       </h:column>
+               </h:dataTable>
 
-                       <h:outputText styleClass="errors" value="#{msg.ADMIN_LIST_MOBILE_EMPTY}" rendered="#{phoneController.allMobileNumbers().isEmpty()}" />
-               </ui:define>
-       </ui:composition>
-</html>
+               <ui:fragment rendered="#{phoneController.allMobileNumbers().isEmpty()}">
+                       <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+                               <ui:param name="message" value="#{msg.ADMIN_LIST_MOBILE_EMPTY}" />
+                               <ui:param name="styleClass" value="errors" />
+                       </ui:include>
+               </ui:fragment>
+       </ui:define>
+</ui:composition>