]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/category/admin_category_list.xhtml
global commit: changed name space to jcp.org as this is seems to be lesser proprietary?
[pizzaservice-war.git] / web / admin / category / admin_category_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://xmlns.jcp.org/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_CATEGORIES}</ui:define>
13
14                 <ui:define name="content_header">
15                         #{msg.CONTENT_TITLE_ADMIN_CATEGORIES}
16                 </ui:define>
17
18                 <ui:define name="content">
19                         <div class="para">
20                                 <h:dataTable id="categories" var="cat" value="#{categoryController.allCategories}" styleClass="table" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_CATEGORY}">
21                                         <h:column>
22                                                 <f:facet name="header">#{msg.ADMIN_CATEGORY_ID}</f:facet>
23                                                 <h:link outcome="admin_edit_category" title="#{msg.ADMIN_LINK_EDIT_DELETE_CATEGORY_TITLE}" value="#{cat.categoryId}">
24                                                         <f:param name="categoryId" value="#{cat.categoryId}" />
25                                                 </h:link>
26                                         </h:column>
27
28                                         <h:column>
29                                                 <f:facet name="header">#{msg.ADMIN_ENTER_CATEGORY_TITLE}</f:facet>
30                                                         #{cat.categoryTitle}
31                                         </h:column>
32
33                                         <h:column>
34                                                 <f:facet name="header">#{msg.ADMIN_PARENT_CATEGORY}</f:facet>
35                                                         #{cat.parentCategory.categoryId}
36                                         </h:column>
37                                 </h:dataTable>
38                         </div>
39
40                         <div class="para">
41                                 <h:form id="add_category">
42                                         <div class="table">
43                                                 <div class="table_header">
44                                                         #{msg.ADMIN_ADD_CATEGORY_TITLE}
45                                                 </div>
46
47                                                 <fieldset id="product_data">
48                                                         <legend>#{msg.PLEASE_FILL_ALL_FIELDS}</legend>
49
50                                                         <div class="table_row">
51                                                                 <div class="table_left">
52                                                                         #{msg.ADMIN_ENTER_CATEGORY_TITLE}
53                                                                         <div class="tiny">#{msg.ADMIN_ENTER_CATEGORY_TITLE_EXAMPLE}</div>
54                                                                 </div>
55
56                                                                 <div class="table_right">
57                                                                         <h:inputText class="input" id="guest_title" value="#{adminCategoryController.categoryTitle}" size="10" maxlength="255" required="true" />
58                                                                 </div>
59
60                                                                 <div class="clear"></div>
61                                                         </div>
62
63                                                         <div class="table_row">
64                                                                 <div class="table_left">
65                                                                         #{msg.ADMIN_PARENT_CATEGORY}
66                                                                 </div>
67
68                                                                 <div class="table_right">
69                                                                         <ui:include src="/WEB-INF/templates/admin/category/admin_parent_category_selection_box.tpl" />
70                                                                 </div>
71
72                                                                 <div class="clear"></div>
73                                                         </div>
74                                                 </fieldset>
75
76                                                 <div class="table_footer">
77                                                         <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
78                                                         <h:commandButton class="submit" type="submit" action="#{adminCategoryController.addCategory()}" value="#{msg.ADMIN_BUTTON_ADD_CATEGORY}" />
79                                                 </div>
80                                         </div>
81                                 </h:form>
82                         </div>
83                 </ui:define>
84         </ui:composition>
85 </html>