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