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">
10 <ui:define name="document_admin_title">
11 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_MOBILE_PROVIDER_LIST}" />
14 <ui:define name="content_header">
15 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_MOBILE_PROVIDER_LIST}" />
18 <ui:define name="content">
19 <h:form id="form-list-mobile-provider">
21 id="table-list-mobile-provider"
23 value="#{mobileProviderController.allMobileProviders()}"
24 tableStyleClass="table table-full"
26 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
27 widgetVar="mobileProviderList"
28 filteredValue="#{mobileProviderController.filteredMobileProviders}"
31 resizableColumns="true"
32 rowsPerPageTemplate="5,10,20,50,100"
34 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILE_PROVIDERS}"
35 emptyMessage="#{msg.ADMIN_EMPTY_LIST_MOBILE_PROVIDER}"
36 widgetVar="mobileProviderList"
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" />
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}" />
51 <p:column headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}" sortBy="#{mobileProvider.providerName}" filterBy="#{mobileProvider.providerName}" filterMatchMode="contains">
52 <h:outputText value="#{mobileProvider.providerName}" />
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}" />
59 <p:column headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_COUNTRY}" sortBy="#{mobileProvider.providerCountry.countryPhoneCode}" filterBy="#{mobileProvider.providerCountry}" filterMatchMode="in">
60 <f:facet name="filter">
63 filterMatchMode="contains"
64 label="#{msg.LABEL_COUNTRIES}"
65 onchange="PF('mobileProviderList').filter()"
67 title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}"
69 <f:converter converterId="CountryConverter" />
70 <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{msg[country.countryI18nKey]}" />
71 </p:selectCheckboxMenu>
74 <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
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" />
83 <p:column headerText="#{msg.ADMIN_ACTION_LINKS}" sortable="false">
84 <links:outputMobileProviderAdminMiniLinks mobileProvider="#{mobileProvider}" />
90 <h:panelGroup styleClass="table table-full" layout="block">
91 <div class="table-header">
92 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_TITLE}" />
95 <ui:include src="/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl" />
97 <div class="table-footer">
101 value="#{msg.BUTTON_RESET_FORM}"
106 value="#{msg.BUTTON_ADMIN_ADD_MOBILE_PROVIDER}"
107 action="#{adminMobileProviderController.addMobileProvider()}"
108 update=":master:form-list-mobile-provider:table-list-mobile-provider"
113 <h:panelGroup styleClass="para notice" layout="block">
114 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_NOTICES}" />
116 <li><h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_PATTERN}" /></li>