]> 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                                 xmlns:p="http://primefaces.org/ui">
9
10         <ui:define name="document_admin_title">
11                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}" />
12         </ui:define>
13
14         <ui:define name="content_header">
15                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_MOBILE_NUMBER}" />
16         </ui:define>
17
18         <ui:define name="content">
19                 <p:dataTable
20                         id="table-list-mobile-provider"
21                         var="mobileNumber"
22                         value="#{phoneController.allMobileNumbers()}"
23                         tableStyleClass="table table-full"
24                         paginator="true"
25                         rows="10"
26                         summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILES}"
27                         emptyMessage="#{msg.ADMIN_EMPTY_LIST_MOBILE_NUMBER}"
28                         >
29                         <p:column>
30                                 <f:facet name="header">
31                                         <h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
32                                 </f:facet>
33
34                                 <p:link outcome="admin_show_mobile" value="#{mobileNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_MOBILE_NUMBER_TITLE}">
35                                         <f:param name="phoneId" value="#{mobileNumber.phoneId}" />
36                                 </p:link>
37                         </p:column>
38
39                         <p:column>
40                                 <f:facet name="header">
41                                         <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_PROVIDER_NAME}" />
42                                 </f:facet>
43
44                                 <p:link outcome="admin_show_mobile_provider" value="#{mobileNumber.mobileProvider.providerName}">
45                                         <f:param name="providerId" value="#{mobileNumber.mobileProvider.providerId}" />
46                                 </p:link>
47                         </p:column>
48
49                         <p:column>
50                                 <f:facet name="header">
51                                         <h:outputText value="#{msg.ADMIN_SHOW_MOBILE_NUMBER_COMPLETE}" />
52                                 </f:facet>
53
54                                 <h:outputText value="#{mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix}#{mobileNumber.mobileProvider.providerDialPrefix}-#{mobileNumber.phoneNumber}" />
55                         </p:column>
56
57                         <p:column>
58                                 <f:facet name="header">
59                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
60                                 </f:facet>
61
62                                 <h:outputText value="#{mobileNumber.phoneEntryCreated.time}">
63                                         <f:convertDateTime type="both" />
64                                 </h:outputText>
65                         </p:column>
66
67                         <p:column>
68                                 <f:facet name="header">
69                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
70                                 </f:facet>
71
72                                 <h:outputText value="#{mobileNumber.phoneEntryUpdated.time}">
73                                         <f:convertDateTime type="both" />
74                                 </h:outputText>
75                         </p:column>
76                 </p:dataTable>
77         </ui:define>
78 </ui:composition>