]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/mobile_provider/admin_mobile_provider_list.xhtml
Please cherry-pick:
[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="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                                 widgetVar="mobileProviderTable"
25                                 filteredValue="#{mobileProviderController.filteredMobileProviders}"
26                                 tableStyleClass="table table-medium"
27                                 rows="10"
28                                 paginator="true"
29                                 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
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_MOBILE_PROVIDER_LIST_EMPTY}">
36
37                                 <f:facet name="header">
38                                         <h:outputText value="#{msg.ADMIN_LIST_MOBILE_PROVIDERS_HEADER}" />
39                                         <p:commandButton id="toggler" type="button" value="#{msg.SELECT_SHOWN_COLUMNS}" styleClass="column-selector" />
40                                         <p:columnToggler datasource="table-list-mobile-provider" trigger="toggler" />
41                                 </f:facet>
42
43                                 <p:column filterBy="#{mobileProvider.providerId}" sortBy="#{mobileProvider.providerId}" headerText="#{msg.ADMIN_ID_NUMBER}">
44                                         <p:link outcome="admin_show_mobile_provider" title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}" value="#{mobileProvider.providerId}">
45                                                 <f:param name="providerId" value="#{mobileProvider.providerId}" />
46                                         </p:link>
47                                 </p:column>
48
49                                 <p:column filterBy="#{mobileProvider.providerName}" sortBy="#{mobileProvider.providerName}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}" filterMatchMode="contains">
50                                         <h:outputText value="#{mobileProvider.providerName}" />
51                                 </p:column>
52
53                                 <p:column filterBy="#{mobileProvider.providerDialPrefix}" sortBy="#{mobileProvider.providerDialPrefix}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX}" filterMatchMode="contains">
54                                         <h:outputText value="#{mobileProvider.providerDialPrefix}" />
55                                 </p:column>
56
57                                 <p:column filterBy="#{mobileProvider.providerCountry}" sortBy="#{mobileProvider.providerCountry.countryPhoneCode}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_COUNTRY}" filterMatchMode="in">
58                                         <f:facet name="filter">
59                                                 <p:selectCheckboxMenu filter="true" label="#{msg.COUNTRIES}" onchange="PF('mobileProviderTable').filter()" updateLabel="true" title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}">
60                                                         <f:converter converterId="CountryConverter" />
61                                                         <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{msg[country.countryI18nKey]}" />
62                                                 </p:selectCheckboxMenu>
63                                         </f:facet>
64
65                                         <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
66                                 </p:column>
67
68                                 <p:column sortBy="#{mobileProvider.providerEntryCreated}" headerText="#{msg.ADMIN_LIST_ENTRY_CREATED}">
69                                         <h:outputText id="providerEntryCreated" value="#{mobileProvider.providerEntryCreated.time}">
70                                                 <f:convertDateTime for="providerEntryCreated" type="both" timeStyle="short" dateStyle="short" />
71                                         </h:outputText>
72                                 </p:column>
73
74                                 <p:column sortable="false" headerText="#{msg.ADMIN_ACTION_LINKS}">
75                                         <links:outputMobileProviderAdminMiniLinks mobileProvider="#{mobileProvider}" />
76                                 </p:column>
77                         </p:dataTable>
78                 </h:form>
79
80                 <h:form id="form_add_mobile_provider">
81                         <h:panelGroup styleClass="table table-medium" layout="block">
82                                 <div class="table-header">
83                                         <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_TITLE}" />
84                                 </div>
85
86                                 <ui:include src="/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl" />
87
88                                 <div class="table-footer">
89                                         <p:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
90                                         <p:commandButton styleClass="submit" type="submit" id="button_add_mobile_provider" value="#{msg.BUTTON_ADMIN_ADD_MOBILE_PROVIDER}" action="#{adminMobileProviderController.addMobileProvider()}" />
91                                 </div>
92                         </h:panelGroup>
93
94                         <h:panelGroup styleClass="para notice" layout="block">
95                                 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_NOTICES}" />
96                                 <ul>
97                                         <li><h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_PATTERN}" /></li>
98                                 </ul>
99                         </h:panelGroup>
100                 </h:form>
101         </ui:define>
102 </ui:composition>