]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/mobile/admin_mobile_list.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / mobile / admin_mobile_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
7                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
8
9         <ui:define name="admin_title">
10                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}" />
11         </ui:define>
12
13         <ui:define name="content_header">
14                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}" />
15         </ui:define>
16
17         <ui:define name="content">
18                 <h:dataTable id="table_list_mobile" var="mobileNumber" value="#{phoneController.allMobileNumbers()}" styleClass="table-full" headerClass="table-header-column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILES}" rendered="#{not phoneController.allMobileNumbers().isEmpty()}">
19                         <h:column>
20                                 <f:facet name="header">
21                                         <h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
22                                 </f:facet>
23
24                                 <h:link outcome="admin_show_mobile" value="#{mobileNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_MOBILE_NUMBER_TITLE}">
25                                         <f:param name="phoneId" value="#{mobileNumber.phoneId}" />
26                                 </h:link>
27                         </h:column>
28
29                         <h:column>
30                                 <f:facet name="header">
31                                         <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_PROVIDER_NAME}" />
32                                 </f:facet>
33
34                                 <h:link outcome="admin_show_mobile_provider" value="#{mobileNumber.mobileProvider.providerName}">
35                                         <f:param name="providerId" value="#{mobileNumber.mobileProvider.providerId}" />
36                                 </h:link>
37                         </h:column>
38
39                         <h:column>
40                                 <f:facet name="header">
41                                         <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_NUMBER_COMPLETE}" />
42                                 </f:facet>
43
44                                 <h:outputText value="#{mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix}#{mobileNumber.mobileProvider.providerDialPrefix}-#{mobileNumber.phoneNumber}" />
45                         </h:column>
46
47                         <h:column>
48                                 <f:facet name="header">
49                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
50                                 </f:facet>
51
52                                 <h:outputText value="#{mobileNumber.phoneEntryCreated.time}">
53                                         <f:convertDateTime type="both" />
54                                 </h:outputText>
55                         </h:column>
56
57                         <h:column>
58                                 <f:facet name="header">
59                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
60                                 </f:facet>
61
62                                 <h:outputText value="#{mobileNumber.phoneEntryUpdated.time}">
63                                         <f:convertDateTime type="both" />
64                                 </h:outputText>
65                         </h:column>
66                 </h:dataTable>
67
68                 <widgets:outputMessageBox message="#{msg.ADMIN_LIST_MOBILE_EMPTY}" messageStyleClass="alert-danger" rendered="#{phoneController.allMobileNumbers().isEmpty()}" />
69         </ui:define>
70 </ui:composition>