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_LIST_COUNTRY}" />
16 <ui:define name="content_header">
17 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_COUNTRY}" />
20 <ui:define name="content">
21 <h:form id="form-list-countries">
25 value="#{countryListController.allCountries}"
27 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
28 filteredValue="#{countryListController.filteredCountries}"
30 rowKey="#{country.countryId}"
32 resizableColumns="true"
33 rowsPerPageTemplate="5,10,20,50,100"
35 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_COUNTRY}"
36 emptyMessage="#{msg.ADMIN_EMPTY_LIST_COUNTRY}"
37 widgetVar="countryList"
38 selectionMode="single"
39 selection="#{countryListController.selectedCountry}"
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('countryList').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="countryList" trigger="toggler" />
87 update="form-list-countries:country-details"
88 oncomplete="PF('countryDialog').show()"
92 headerText="#{msg.ID_HEADER}"
93 sortBy="#{country.countryId}"
97 outcome="admin_show_country"
98 value="#{country.countryId}"
99 title="#{msg.ADMIN_LINK_SHOW_COUNTRY_TITLE}"
101 <f:param name="countryId" value="#{country.countryId}" />
106 headerText="#{msg.DATA_COUNTRY_CODE}"
107 sortBy="#{country.countryCode}"
108 filterBy="#{country.countryCode}"
109 filterMatchMode="contains"
112 <h:outputText value="#{country.countryCode}" />
116 headerText="#{msg.DATA_COUNTRY_NAME}"
117 sortBy="#{msg[country.countryI18nKey]}"
118 filterBy="#{msg[country.countryI18nKey]}"
119 filterMatchMode="contains"
122 <h:outputText value="#{msg[country.countryI18nKey]}" />
126 headerText="#{msg.DATA_COUNTRY_EXTERNAL_DIAL_PREFIX}"
127 sortBy="#{country.countryExternalDialPrefix}"
128 filterBy="#{country.countryExternalDialPrefix}"
129 filterMatchMode="contains"
132 <h:outputText value="#{country.countryExternalDialPrefix}" />
136 headerText="#{msg.DATA_COUNTRY_ABROAD_DIAL_PREFIX}"
137 sortBy="#{country.countryAbroadDialPrefix}"
138 filterBy="#{country.countryAbroadDialPrefix}"
139 filterMatchMode="contains"
142 <h:outputText value="#{country.countryAbroadDialPrefix}" />
146 headerText="#{msg.DATA_IS_REQUIRED}"
147 sortBy="#{country.countryIsLocalPrefixRequired}"
148 filterBy="#{country.countryIsLocalPrefixRequired}"
149 filterMatchMode="contains"
152 <h:outputText value="#{country.countryIsLocalPrefixRequired ? msg.CHOICE_YES : msg.CHOICE_NO}" />
156 headerText="#{msg.DATA_COUNTRY_PHONE_CODE}"
157 sortBy="#{country.countryPhoneCode}"
158 filterBy="#{country.countryPhoneCode}"
159 filterMatchMode="contains"
162 <h:outputText value="#{country.countryPhoneCode}" />
166 headerText="#{msg.ENTRY_CREATED_HEADER}"
167 sortBy="#{country.countryEntryCreated}"
168 filterBy="#{country.countryEntryCreated}"
169 filterMatchMode="contains"
172 <h:outputText value="#{country.countryEntryCreated}">
173 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
178 headerText="#{msg.ENTRY_UPDATED_HEADER}"
179 sortBy="#{country.countryEntryUpdated}"
180 filterBy="#{country.countryEntryUpdated}"
181 filterMatchMode="contains"
184 <h:outputText value="#{country.countryEntryUpdated}">
185 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
190 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
194 <p:menuButton value="#{msg.OPTIONS}">
196 outcome="admin_show_country"
197 value="#{msg.ADMIN_LINK_SHOW_SHORT}"
198 title="#{msg.ADMIN_LINK_SHOW_COUNTRY_TITLE}"
200 <f:param name="countryId" value="#{country.countryId}" />
204 outcome="admin_edit_country"
205 value="#{msg.ADMIN_LINK_EDIT_SHORT}"
206 title="#{msg.ADMIN_LINK_EDIT_COUNTRY_TITLE}"
208 <f:param name="countryId" value="#{country.countryId}" />
211 <p:menuitem outcome="admin_delete_country">
213 styleClass="link-danger"
214 value="#{msg.ADMIN_LINK_DELETE_SHORT}"
215 title="#{msg.ADMIN_LINK_DELETE_COUNTRY_TITLE}"
217 <f:param name="countryId" value="#{country.countryId}" />
227 header="#{msg.ADMIN_SINGLE_COUNTRY_DETAILS_HEADER}"
230 widgetVar="countryDialog"
235 <p:outputPanel id="country-details">
236 <p:panelGrid columns="2" rendered="#{not empty countryListController.selectedCountry}">
237 <f:facet name="header">
238 <h:outputFormat value="#{msg.ADMIN_COUNTRY_DETAILS_HEADER}">
239 <f:param value="#{msg[countryListController.selectedCountry.countryI18nKey]}" />
240 <f:param value="#{countryListController.selectedCountry.countryId}" />
244 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.COUNTRY_ID_NUMBER_TITLE}" />
245 <h:outputText value="#{countryListController.selectedCountry.countryId}" />
252 <h:panelGroup layout="block">
253 <div class="table-header">
254 <h:outputText value="#{msg.ADMIN_ADD_COUNTRY_TITLE}" />
257 <ui:include src="/WEB-INF/templates/admin/country/admin_form_country_data.tpl" />
259 <p:panelGrid columns="2" layout="grid">
262 value="#{msg.BUTTON_RESET_FORM}"
267 value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}"
268 action="#{adminCountryController.addCountry()}"
269 update="form-list-countries:countryList"
274 <div class="para notice">
275 <h:outputText value="#{msg.ADMIN_ADD_COUNTRY_NOTICES}" />
277 <li><h:outputText value="#{msg.ADMIN_ADD_COUNTRY_I18N_KEY_NOTICE}" /></li>