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"
134 label="#{msg.LABEL_COUNTRIES}"
135 onchange="PF('mobileProviderList').filter()"
137 title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}"
139 <f:converter converterId="CountryConverter" />
141 value="#{countryListController.allCountries}"
143 itemValue="#{country}"
144 itemLabel="#{msg[country.countryI18nKey]}"
146 </p:selectCheckboxMenu>
149 <h:outputText value="#{msg[mobileProvider.providerCountry.countryI18nKey]}" />
153 headerText="#{msg.ENTRY_CREATED_HEADER}"
154 sortBy="#{mobileProvider.providerEntryCreated}"
156 <h:outputText value="#{mobileProvider.providerEntryCreated}">
157 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
162 headerText="#{msg.ENTRY_UPDATED_HEADER}"
163 sortBy="#{mobileProvider.providerEntryUpdated}"
165 <h:outputText value="#{mobileProvider.providerEntryUpdated}">
166 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
171 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
174 <p:menuButton value="#{msg.OPTIONS}">
176 outcome="admin_show_mobile_provider"
177 value="#{msg.ADMIN_LINK_SHOW_SHORT}"
178 title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}"
180 <f:param name="providerId" value="#{mobileProvider.providerId}" />
184 outcome="admin_edit_mobile_provider"
185 value="#{msg.ADMIN_LINK_EDIT_SHORT}"
186 title="#{msg.ADMIN_LINK_EDIT_MOBILE_PROVIDER_TITLE}"
188 <f:param name="providerId" value="#{mobileProvider.providerId}" />
191 <p:menuitem outcome="admin_delete_mobile_provider">
193 styleClass="link-danger"
194 value="#{msg.ADMIN_LINK_DELETE_SHORT}"
195 title="#{msg.ADMIN_LINK_DELETE_MOBILE_PROVIDER_TITLE}"
197 <f:param name="providerId" value="#{mobileProvider.providerId}" />
207 header="#{msg.ADMIN_SINGLE_MOBILE_PROVIDER_DETAILS_HEADER}"
210 widgetVar="mobileProviderDialog"
215 <p:outputPanel id="mobile-provider-details">
216 <p:panelGrid columns="2" rendered="#{not empty mobileProviderListController.selectedMobileProvider}">
217 <f:facet name="header">
218 <h:outputFormat value="#{msg.ADMIN_MOBILE_PROVIDER_DETAILS_HEADER}">
219 <f:param value="#{mobileProviderListController.selectedMobileProvider.providerName}" />
220 <f:param value="#{mobileProviderListController.selectedMobileProvider.providerId}" />
224 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.MOBILE_PROVIDER_ID_NUMBER_TITLE}" />
225 <h:outputText value="#{mobileProviderListController.selectedMobileProvider.providerId}" />
232 <h:panelGroup layout="block">
233 <div class="table-header">
234 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_TITLE}" />
237 <ui:include src="/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl" />
239 <p:panelGrid columns="2" layout="grid">
242 value="#{msg.BUTTON_RESET_FORM}"
247 value="#{msg.BUTTON_ADMIN_ADD_MOBILE_PROVIDER}"
248 action="#{adminMobileProviderController.addMobileProvider()}"
249 update="form-list-mobile-providers:mobileProviderList"
254 <h:panelGroup styleClass="para notice" layout="block">
255 <h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_NOTICES}" />
257 <li><h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_PATTERN}" /></li>