]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/country/admin_country_list.xhtml
need to add language stuff in every page. :-( Maybe one day there is a better solutio...
[jjobs-war.git] / web / admin / country / admin_country_list.xhtml
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">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://java.sun.com/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         >
10
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>
13
14                 <ui:define name="content_header">
15                         #{msg.CONTENT_TITLE_ADMIN_LIST_COUNTRY}
16                 </ui:define>
17
18                 <ui:define name="content">
19                         <h:dataTable id="table_list_countries" var="country" value="#{adminCountryController.allCountries()}" styleClass="table_medium" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_COUNTRIES}" rendered="#{adminCountryController.hasCountries()}">
20                                 <h:column>
21                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_ID}</f:facet>
22
23                                         <h:link outcome="admin_edit_country" title="#{msg.ADMIN_LINK_EDIT_DELETE_COUNTRY_TITLE}" value="#{country.countryId}">
24                                                 <f:param name="countryId" value="#{country.countryId}" />
25                                         </h:link>
26                                 </h:column>
27
28                                 <h:column>
29                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_CODE}</f:facet>
30
31                                         <h:outputText value="#{country.countryCode}" />
32                                 </h:column>
33
34                                 <h:column>
35                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_EXTERNAL_DIAL_PREFIX}</f:facet>
36
37                                         <h:outputText value="#{country.countryExternalDialPrefix}" />
38                                 </h:column>
39
40                                 <h:column>
41                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_NAME}</f:facet>
42
43                                         <h:outputText value="#{msg[country.countryI18nkey]}" />
44                                 </h:column>
45                         </h:dataTable>
46
47                         <h:form id="add_country">
48                                 <div class="table_medium">
49                                         <div class="table_header">
50                                                 #{msg.ADMIN_ADD_COUNTRY_TITLE}
51                                         </div>
52
53                                         <ui:include src="/WEB-INF/templates/admin/country/admin_form_country_data.tpl" />
54
55                                         <div class="table_footer">
56                                                 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
57                                                 <h:commandButton class="submit" type="submit" id="register" value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}" action="#{adminCountryController.addCountry()}" />
58                                         </div>
59                                 </div>
60
61                                 <div class="para notice">
62                                         #{msg.ADMIN_ADD_COUNTRY_NOTICES}
63                                         <ul>
64                                                 <li>#{msg.ADMIN_ADD_COUNTRY_I18N_KEY_NOTICE}</li>
65                                         </ul>
66                                 </div>
67                         </h:form>
68                 </ui:define>
69         </ui:composition>
70 </html>