]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/category.xhtml
Even more strings have been internationalized and translated to English.
[pizzaservice-war.git] / web / admin / category.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="menu">
13                         <ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
14                 </ui:define>
15
16                 <ui:define name="content_header">
17                         #{msg.SUB_TITLE_ADMIN_CATEGORIES}
18                 </ui:define>
19
20                 <ui:define name="content">
21                         <div class="para">
22                                 <h:form acceptcharset="utf-8" id="form">
23                                         <h:dataTable headerClass="table_header_column" rowClasses="table_row" styleClass="table" id="categories" value="#{controller.allCategories}" var="cat">
24                                                 <h:column>
25                                                         <f:facet name="header">#{msg.SELECT_ENTRY}</f:facet>
26                                                         #{cat.id}:
27                                                         <h:selectBooleanCheckbox class="input" value="true" />
28                                                 </h:column>
29
30                                                 <h:column>
31                                                         <f:facet name="header">#{msg.ADMIN_ENTER_CATEGORY_TITLE}</f:facet>
32                                                         #{cat.title}
33                                                 </h:column>
34
35                                                 <h:column>
36                                                         <f:facet name="header">#{msg.ADMIN_PARENT_CATEGORY}</f:facet>
37                                                         #{cat.parentId}
38                                                 </h:column>
39                                         </h:dataTable>
40
41                                         <div class="table_footer">
42                                                 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
43                                                 <h:commandButton class="submit" type="submit" id="edit" action="#{admin_category.editCategory(cat)}" value="#{msg.ADMIN_BUTTON_EDIT_ENTRIES}" />
44                                                 <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteCategory(cat)}" value="#{msg.ADMIN_BUTTON_DELETE_ENTRIES}" />
45                                         </div>
46                                 </h:form>
47                         </div>
48
49                         <div class="para">
50                                 <h:form acceptcharset="utf-8" id="add_category">
51                                 <div class="table">
52                                         <div class="table_header">
53                                                 #{msg.ADMIN_ADD_CATEGORY_TITLE}
54                                         </div>
55
56                                         <fieldset id="product_data">
57                                                 <legend>#{msg.PLEASE_FILL_ALL_FIELDS}</legend>
58
59                                                 <div class="table_row">
60                                                         <div class="table_left">
61                                                                 #{msg.ADMIN_ENTER_CATEGORY_TITLE}
62                                                                 <div class="tiny">(#{msg.ADMIN_ENTER_CATEGORY_TITLE_EXAMPLE})</div>
63                                                         </div>
64
65                                                         <div class="table_right">
66                                                                 <h:inputText class="input" id="title" value="#{admin_category.title}" size="10" maxlength="255" required="true" />
67                                                         </div>
68
69                                                         <div class="clear"></div>
70                                                 </div>
71
72                                                 <div class="table_row">
73                                                         <div class="table_left">
74                                                                 #{msg.ADMIN_PARENT_CATEGORY}
75                                                         </div>
76
77                                                         <div class="table_right">
78                                                                 <ui:include src="/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl" />
79                                                         </div>
80
81                                                         <div class="clear"></div>
82                                                 </div>
83                                         </fieldset>
84
85                                         <div class="table_footer">
86                                                 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
87                                                 <h:commandButton class="submit" type="submit" action="#{admin_category.addCategory()}" value="#{msg.ADMIN_BUTTON_ADD_CATEGORY}" />
88                                         </div>
89                                 </div>
90                                 </h:form>
91                         </div>
92                 </ui:define>
93
94                 <ui:define name="footer">
95                         <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />
96                 </ui:define>
97         </ui:composition>
98 </html>