1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/admin/admin_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:links="http://mxchange.org/jsf/core/links"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:f="http://xmlns.jcp.org/jsf/core"
9 xmlns:p="http://primefaces.org/ui"
12 <ui:define name="document_admin_title">
13 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_MOBILE_PROVIDER_LIST}" />
16 <ui:define name="content_header">
17 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_MOBILE_PROVIDER_LIST}" />
20 <ui:define name="content">
21 <h:form id="form-list-mobile-providers">
23 id="mobileProviderList"
25 value="#{mobileProviderListController.allMobileProviders}"
27 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
28 filteredValue="#{mobileProviderListController.filteredMobileProviders}"
30 rowKey="#{mobileProvider.providerId}"
32 resizableColumns="true"
33 rowsPerPageTemplate="5,10,20,50,100"
35 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_MOBILE_PROVIDERS}"
36 emptyMessage="#{msg.ADMIN_EMPTY_LIST_MOBILE_PROVIDERS}"
37 widgetVar="mobileProviderList"
38 selectionMode="single"
39 selection="#{mobileProviderListController.selectedMobileProvider}"
43 <f:facet name="header">
47 columnClasses="ui-grid-col-4,ui-grid-col-6,ui-grid-col-2"
53 columnClasses="ui-grid-4,ui-grid-8"
55 styleClass="ui-noborder"
59 value="#{msg.SEARCH_ALL_FIELDS}"
65 onkeyup="PF('mobileProviderList').filter()"
66 placeholder="#{msg.ENTER_KEYWORD}"
71 <p:spacer height="4" />
76 value="#{msg.SELECT_SHOWN_COLUMNS}"
77 styleClass="column-selector"
80 <p:columnToggler datasource="mobileProviderList" trigger="toggler" />
87 update="form-list-mobile-providers:mobile-provider-details"
88 oncomplete="PF('mobileProviderDialog').show()"
92 headerText="#{msg.ID_HEADER}"
93 sortBy="#{mobileProvider.providerId}"
94 filterBy="#{mobileProvider.providerId}"
97 outcome="admin_show_mobile_provider"
98 value="#{mobileProvider.providerId}"
99 title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}"
101 <f:param name="providerId" value="#{mobileProvider.providerId}" />
106 headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_NAME}"
107 sortBy="#{mobileProvider.providerName}"
108 filterBy="#{mobileProvider.providerName}"
109 filterMatchMode="contains"
111 <h:outputText value="#{mobileProvider.providerName}" />
115 headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_DIAL_PREFIX}"
116 sortBy="#{mobileProvider.providerDialPrefix}"
117 filterBy="#{mobileProvider.providerDialPrefix}"
118 filterMatchMode="contains"
120 <h:outputText value="#{mobileProvider.providerDialPrefix}" />
124 headerText="#{msg.ADMIN_LIST_MOBILE_PROVIDER_COUNTRY}"
125 sortBy="#{mobileProvider.providerCountry.countryPhoneCode}"
126 filterBy="#{mobileProvider.providerCountry}"
129 <f:facet name="filter">
130 <p:selectCheckboxMenu
132 filterMatchMode="contains"
133 label="#{msg.LABEL_COUNTRIES}"
134 onchange="PF('mobileProviderList').filter()"
136 title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}"
138 <f:converter converterId="CountryConverter" />
140 value="#{countryListController.allCountries}"
142 itemValue="#{country}"
143 itemLabel="#{msg[country.countryI18nKey]}"
145 </p:selectCheckboxMenu>
148 <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
152 headerText="#{msg.ENTRY_CREATED_HEADER}"
153 sortBy="#{mobileProvider.providerEntryCreated}"
155 <h:outputText value="#{mobileProvider.providerEntryCreated}">
156 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
161 headerText="#{msg.ENTRY_UPDATED_HEADER}"
162 sortBy="#{mobileProvider.providerEntryUpdated}"
164 <h:outputText value="#{mobileProvider.providerEntryUpdated}">
165 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
170 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
173 <p:menuButton value="#{msg.OPTIONS}">
175 outcome="admin_show_mobile_provider"
176 value="#{msg.ADMIN_LINK_SHOW_SHORT}"
177 title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}"
179 <f:param name="providerId" value="#{mobileProvider.providerId}" />
183 outcome="admin_edit_mobile_provider"
184 value="#{msg.ADMIN_LINK_EDIT_SHORT}"
185 title="#{msg.ADMIN_LINK_EDIT_MOBILE_PROVIDER_TITLE}"
187 <f:param name="providerId" value="#{mobileProvider.providerId}" />
190 <p:menuitem outcome="admin_delete_mobile_provider">
192 styleClass="link-danger"
193 value="#{msg.ADMIN_LINK_DELETE_SHORT}"
194 title="#{msg.ADMIN_LINK_DELETE_MOBILE_PROVIDER_TITLE}"
196 <f:param name="providerId" value="#{mobileProvider.providerId}" />
206 header="#{msg.ADMIN_SINGLE_MOBILE_PROVIDER_DETAILS_HEADER}"
209 widgetVar="mobileProviderDialog"
214 <p:outputPanel id="mobile-provider-details">
215 <p:panelGrid columns="2" rendered="#{not empty mobileProviderListController.selectedMobileProvider}">
216 <f:facet name="header">
217 <h:outputFormat value="#{msg.ADMIN_MOBILE_PROVIDER_DETAILS_HEADER}">
218 <f:param value="#{mobileProviderListController.selectedMobileProvider.providerName}" />
219 <f:param value="#{mobileProviderListController.selectedMobileProvider.providerId}" />
223 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.MOBILE_PROVIDER_ID_NUMBER_TITLE}" />
224 <h:outputText value="#{mobileProviderListController.selectedMobileProvider.providerId}" />
231 <h:panelGroup layout="block">
232 <div class="table-header">
233 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_TITLE}" />
236 <ui:include src="/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl" />
238 <p:panelGrid columns="2" layout="grid">
241 value="#{msg.BUTTON_RESET_FORM}"
246 value="#{msg.BUTTON_ADMIN_ADD_MOBILE_PROVIDER}"
247 action="#{adminMobileProviderController.addMobileProvider()}"
248 update="form-list-mobile-providers:mobileProviderList"
253 <h:panelGroup styleClass="para notice" layout="block">
254 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_NOTICES}" />
256 <li><h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_PATTERN}" /></li>