1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5 xmlns="http://www.w3.org/1999/xhtml"
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"
11 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
12 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LIST_COUNTRY}</ui:define>
14 <ui:define name="content_header">
15 #{msg.CONTENT_TITLE_ADMIN_LIST_COUNTRY}
18 <ui:define name="content">
19 <h:dataTable id="table_list_countries" var="country" value="#{countryController.allCountries()}" styleClass="table_medium" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_COUNTRIES}" rendered="#{countryController.hasCountries()}">
21 <f:facet name="header">
22 <h:outputText value="#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_ID}" />
25 <h:link outcome="admin_edit_country" title="#{msg.ADMIN_LINK_EDIT_DELETE_COUNTRY_TITLE}" value="#{country.countryId}">
26 <f:param name="countryId" value="#{country.countryId}" />
31 <f:facet name="header">
32 <h:outputText value="#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_CODE}" />
35 <h:outputText value="#{country.countryCode}" />
39 <f:facet name="header">
40 <h:outputText value="#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
43 <h:outputText value="#{country.countryExternalDialPrefix}" />
47 <f:facet name="header">
48 <h:outputText value="#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_NAME}" />
51 <h:outputText value="#{msg[country.countryI18nkey]}" />
55 <h:form id="form_add_country">
56 <div class="table_medium">
57 <div class="table_header">
58 <h:outputText value="#{msg.ADMIN_ADD_COUNTRY_TITLE}" />
61 <ui:include src="/WEB-INF/templates/admin/country/admin_form_country_data.tpl" />
63 <div class="table_footer">
64 <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
65 <h:commandButton styleClass="submit" type="submit" id="add_country" value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}" action="#{adminCountryController.addCountry()}" />
69 <div class="para notice">
70 <h:outputText value="#{msg.ADMIN_ADD_COUNTRY_NOTICES}" />
72 <li><h:outputText value="#{msg.ADMIN_ADD_COUNTRY_I18N_KEY_NOTICE}" /></li>