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="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 widgetVar="mobileProviderTable"
25 filteredValue="#{mobileProviderController.filteredMobileProviders}"
26 tableStyleClass="table table-medium"
29 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
31 resizableColumns="true"
32 rowsPerPageTemplate="5,10,20,50,100"
34 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILE_PROVIDERS}"
35 emptyMessage="#{msg.ADMIN_MOBILE_PROVIDER_LIST_EMPTY}">
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" />
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}" />
49 <p:column filterBy="#{mobileProvider.providerName}" sortBy="#{mobileProvider.providerName}" headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}" filterMatchMode="contains">
50 <h:outputText value="#{mobileProvider.providerName}" />
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}" />
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>
65 <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
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" />
74 <p:column sortable="false" headerText="#{msg.ADMIN_ACTION_LINKS}">
75 <links:outputMobileProviderAdminMiniLinks mobileProvider="#{mobileProvider}" />
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}" />
86 <ui:include src="/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl" />
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()}" />
94 <h:panelGroup styleClass="para notice" layout="block">
95 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_NOTICES}" />
97 <li><h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_PATTERN}" /></li>