]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/country/admin_country_list.xhtml
class was wrong, needs to be styleClass
[jjobs-war.git] / web / admin / country / admin_country_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>\r
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
3 <html\r
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"\r
5         xmlns="http://www.w3.org/1999/xhtml"\r
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"\r
7         xmlns:h="http://xmlns.jcp.org/jsf/html"\r
8         xmlns:f="http://xmlns.jcp.org/jsf/core"\r
9         >\r
10 \r
11         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">\r
12                 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LIST_COUNTRY}</ui:define>\r
13 \r
14                 <ui:define name="content_header">\r
15                         #{msg.CONTENT_TITLE_ADMIN_LIST_COUNTRY}\r
16                 </ui:define>\r
17 \r
18                 <ui:define name="content">\r
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()}">\r
20                                 <h:column>\r
21                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_ID}</f:facet>\r
22 \r
23                                         <h:link outcome="admin_edit_country" title="#{msg.ADMIN_LINK_EDIT_DELETE_COUNTRY_TITLE}" value="#{country.countryId}">\r
24                                                 <f:param name="countryId" value="#{country.countryId}" />\r
25                                         </h:link>\r
26                                 </h:column>\r
27 \r
28                                 <h:column>\r
29                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_CODE}</f:facet>\r
30 \r
31                                         <h:outputText value="#{country.countryCode}" />\r
32                                 </h:column>\r
33 \r
34                                 <h:column>\r
35                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_EXTERNAL_DIAL_PREFIX}</f:facet>\r
36 \r
37                                         <h:outputText value="#{country.countryExternalDialPrefix}" />\r
38                                 </h:column>\r
39 \r
40                                 <h:column>\r
41                                         <f:facet name="header">#{msg.ADMIN_LIST_COUNTRY_DATA_COUNTRY_NAME}</f:facet>\r
42 \r
43                                         <h:outputText value="#{msg[country.countryI18nkey]}" />\r
44                                 </h:column>\r
45                         </h:dataTable>\r
46 \r
47                         <h:form id="add_country">\r
48                                 <div class="table_medium">\r
49                                         <div class="table_header">\r
50                                                 #{msg.ADMIN_ADD_COUNTRY_TITLE}\r
51                                         </div>\r
52 \r
53                                         <ui:include src="/WEB-INF/templates/admin/country/admin_form_country_data.tpl" />\r
54 \r
55                                         <div class="table_footer">\r
56                                                 <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />\r
57                                                 <h:commandButton styleClass="submit" type="submit" id="register" value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}" action="#{adminCountryController.addCountry()}" />\r
58                                         </div>\r
59                                 </div>\r
60 \r
61                                 <div class="para notice">\r
62                                         #{msg.ADMIN_ADD_COUNTRY_NOTICES}\r
63                                         <ul>\r
64                                                 <li>#{msg.ADMIN_ADD_COUNTRY_I18N_KEY_NOTICE}</li>\r
65                                         </ul>\r
66                                 </div>\r
67                         </h:form>\r
68                 </ui:define>\r
69         </ui:composition>\r
70 </html>\r