]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/mobile_provider/admin_mobile_provider_list.xhtml
669e5c696ba3824528b51e91170c066e322473e1
[jjobs-war.git] / web / admin / mobile_provider / admin_mobile_provider_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:links="http://mxchange.org/jsf/core/links"
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_MOBILE_PROVIDER_LIST}" />
12         </ui:define>
13
14         <ui:define name="content_header">
15                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_MOBILE_PROVIDER_LIST}" />
16         </ui:define>
17
18         <ui:define name="content">
19                 <h:form id="form-list-mobile-provider">
20                         <p:dataTable
21                                 id="table-list-mobile-provider"
22                                 var="mobileProvider"
23                                 value="#{mobileProviderController.allMobileProviders()}"
24                                 tableStyleClass="table table-full"
25                                 paginator="true"
26                                 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
27                                 widgetVar="mobileProviderList"
28                                 filteredValue="#{mobileProviderController.filteredMobileProviders}"
29                                 rows="10"
30                                 reflow="true"
31                                 resizableColumns="true"
32                                 rowsPerPageTemplate="5,10,20,50,100"
33                                 sortMode="multiple"
34                                 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILE_PROVIDERS}"
35                                 emptyMessage="#{msg.ADMIN_EMPTY_LIST_MOBILE_PROVIDER}"
36                                 widgetVar="mobileProviderList"
37                                 >
38
39                                 <f:facet name="header">
40                                         <h:outputText value="#{msg.ADMIN_LIST_MOBILE_PROVIDERS_HEADER}" />
41                                         <p:commandButton id="toggler" type="button" value="#{msg.SELECT_SHOWN_COLUMNS}" styleClass="column-selector" />
42                                         <p:columnToggler datasource="table-list-mobile-provider" trigger="toggler" />
43                                 </f:facet>
44
45                                 <p:column headerText="#{msg.ADMIN_ID_NUMBER}" sortBy="#{mobileProvider.providerId}" filterBy="#{mobileProvider.providerId}">
46                                         <p:link outcome="admin_show_mobile_provider" title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}" value="#{mobileProvider.providerId}">
47                                                 <f:param name="providerId" value="#{mobileProvider.providerId}" />
48                                         </p:link>
49                                 </p:column>
50
51                                 <p:column headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}" sortBy="#{mobileProvider.providerName}" filterBy="#{mobileProvider.providerName}" filterMatchMode="contains">
52                                         <h:outputText value="#{mobileProvider.providerName}" />
53                                 </p:column>
54
55                                 <p:column headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX}" sortBy="#{mobileProvider.providerDialPrefix}" filterBy="#{mobileProvider.providerDialPrefix}" filterMatchMode="contains">
56                                         <h:outputText value="#{mobileProvider.providerDialPrefix}" />
57                                 </p:column>
58
59                                 <p:column headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_COUNTRY}" sortBy="#{mobileProvider.providerCountry.countryPhoneCode}" filterBy="#{mobileProvider.providerCountry}" filterMatchMode="in">
60                                         <f:facet name="filter">
61                                                 <p:selectCheckboxMenu
62                                                         filter="true"
63                                                         filterMatchMode="contains"
64                                                         label="#{msg.LABEL_COUNTRIES}"
65                                                         onchange="PF('mobileProviderList').filter()"
66                                                         updateLabel="true"
67                                                         title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}"
68                                                         >
69                                                         <f:converter converterId="CountryConverter" />
70                                                         <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{msg[country.countryI18nKey]}" />
71                                                 </p:selectCheckboxMenu>
72                                         </f:facet>
73
74                                         <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
75                                 </p:column>
76
77                                 <p:column headerText="#{msg.ADMIN_LIST_ENTRY_CREATED}" sortBy="#{mobileProvider.providerEntryCreated}">
78                                         <h:outputText id="providerEntryCreated" value="#{mobileProvider.providerEntryCreated.time}">
79                                                 <f:convertDateTime for="providerEntryCreated" type="both" timeStyle="short" dateStyle="short" />
80                                         </h:outputText>
81                                 </p:column>
82
83                                 <p:column headerText="#{msg.ADMIN_ACTION_LINKS}" sortable="false">
84                                         <links:outputMobileProviderAdminMiniLinks mobileProvider="#{mobileProvider}" />
85                                 </p:column>
86                         </p:dataTable>
87                 </h:form>
88
89                 <h:form>
90                         <h:panelGroup styleClass="table table-full" layout="block">
91                                 <div class="table-header">
92                                         <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_TITLE}" />
93                                 </div>
94
95                                 <ui:include src="/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl" />
96
97                                 <div class="table-footer">
98                                         <p:commandButton
99                                                 styleClass="reset"
100                                                 type="reset"
101                                                 value="#{msg.BUTTON_RESET_FORM}"
102                                                 />
103                                         <p:commandButton
104                                                 styleClass="submit"
105                                                 type="submit"
106                                                 value="#{msg.BUTTON_ADMIN_ADD_MOBILE_PROVIDER}"
107                                                 action="#{adminMobileProviderController.addMobileProvider()}"
108                                                 update=":master:form-list-mobile-provider:table-list-mobile-provider"
109                                                 />
110                                 </div>
111                         </h:panelGroup>
112
113                         <h:panelGroup styleClass="para notice" layout="block">
114                                 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_NOTICES}" />
115                                 <ul>
116                                         <li><h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_PATTERN}" /></li>
117                                 </ul>
118                         </h:panelGroup>
119                 </h:form>
120         </ui:define>
121 </ui:composition>