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"
57 <p:outputLabel for="globalFilter" value="#{msg.SEARCH_ALL_FIELDS}" style="float: right" />
58 <p:inputText id="globalFilter" onkeyup="PF('countryList').filter()" placeholder="#{msg.ENTER_KEYWORD}"/>
62 <p:spacer height="4" />
67 value="#{msg.SELECT_SHOWN_COLUMNS}"
68 styleClass="column-selector"
71 <p:columnToggler datasource="countryList" trigger="toggler" />
78 update=":master:form-list-countries:country-details"
79 oncomplete="PF('countryDialog').show()"
83 headerText="#{msg.ID_HEADER}"
84 sortBy="#{country.countryId}"
88 outcome="admin_show_country"
89 value="#{country.countryId}"
90 title="#{msg.ADMIN_LINK_SHOW_COUNTRY_TITLE}"
92 <f:param name="countryId" value="#{country.countryId}" />
97 headerText="#{msg.DATA_COUNTRY_CODE}"
98 sortBy="#{country.countryCode}"
99 filterBy="#{country.countryCode}"
100 filterMatchMode="contains"
103 <h:outputText value="#{country.countryCode}" />
107 headerText="#{msg.DATA_COUNTRY_NAME}"
108 sortBy="#{msg[country.countryI18nKey]}"
109 filterBy="#{msg[country.countryI18nKey]}"
110 filterMatchMode="contains"
113 <h:outputText value="#{msg[country.countryI18nKey]}" />
117 headerText="#{msg.DATA_COUNTRY_EXTERNAL_DIAL_PREFIX}"
118 sortBy="#{country.countryExternalDialPrefix}"
119 filterBy="#{country.countryExternalDialPrefix}"
120 filterMatchMode="contains"
123 <h:outputText value="#{country.countryExternalDialPrefix}" />
127 headerText="#{msg.DATA_COUNTRY_ABROAD_DIAL_PREFIX}"
128 sortBy="#{country.countryAbroadDialPrefix}"
129 filterBy="#{country.countryAbroadDialPrefix}"
130 filterMatchMode="contains"
133 <h:outputText value="#{country.countryAbroadDialPrefix}" />
137 headerText="#{msg.DATA_IS_REQUIRED}"
138 sortBy="#{country.countryIsLocalPrefixRequired}"
139 filterBy="#{country.countryIsLocalPrefixRequired}"
140 filterMatchMode="contains"
143 <h:outputText value="#{country.countryIsLocalPrefixRequired ? msg.CHOICE_YES : msg.CHOICE_NO}" />
147 headerText="#{msg.ENTRY_CREATED_HEADER}"
148 sortBy="#{country.countryEntryCreated}"
149 filterBy="#{country.countryEntryCreated}"
150 filterMatchMode="contains"
153 <h:outputText value="#{country.countryEntryCreated}">
154 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
159 headerText="#{msg.ENTRY_UPDATED_HEADER}"
160 sortBy="#{country.countryEntryUpdated}"
161 filterBy="#{country.countryEntryUpdated}"
162 filterMatchMode="contains"
165 <h:outputText value="#{country.countryEntryUpdated}">
166 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
171 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
175 <links:outputCountryAdminDropdownMenu country="#{country}" />
183 header="#{msg.ADMIN_SINGLE_COUNTRY_DETAILS_HEADER}"
186 widgetVar="countryDialog"
191 <p:outputPanel id="country-details">
192 <p:panelGrid columns="2" rendered="#{not empty countryListController.selectedCountry}">
193 <f:facet name="header">
194 <h:outputFormat value="#{msg.ADMIN_COUNTRY_DETAILS_HEADER}">
195 <f:param value="#{msg[countryListController.selectedCountry.countryI18nKey]}" />
196 <f:param value="#{countryListController.selectedCountry.countryId}" />
200 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.COUNTRY_ID_NUMBER_TITLE}" />
201 <h:outputText value="#{countryListController.selectedCountry.countryId}" />
208 <h:panelGroup layout="block">
209 <div class="table-header">
210 <h:outputText value="#{msg.ADMIN_ADD_COUNTRY_TITLE}" />
213 <ui:include src="/WEB-INF/templates/admin/country/admin_form_country_data.tpl" />
215 <p:panelGrid columns="2" layout="grid">
218 value="#{msg.BUTTON_RESET_FORM}"
223 value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}"
224 action="#{adminCountryController.addCountry()}"
225 update=":master:form-list-countries:countryList"
230 <div class="para notice">
231 <h:outputText value="#{msg.ADMIN_ADD_COUNTRY_NOTICES}" />
233 <li><h:outputText value="#{msg.ADMIN_ADD_COUNTRY_I18N_KEY_NOTICE}" /></li>