]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/category/admin_category_list.xhtml
used more <h:outputText value="#{msg.BLA_MESSAGE}" /> instead of directly having...
[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">
23                                                         <h:outputText value="#{msg.ADMIN_CATEGORY_ID}" />
24                                                 </f:facet>
25
26                                                 <h:link outcome="admin_edit_category" title="#{msg.ADMIN_LINK_EDIT_DELETE_CATEGORY_TITLE}" value="#{cat.categoryId}">
27                                                         <f:param name="categoryId" value="#{cat.categoryId}" />
28                                                 </h:link>
29                                         </h:column>
30
31                                         <h:column>
32                                                 <f:facet name="header">
33                                                         <h:outputText value="#{msg.ADMIN_ENTER_CATEGORY_TITLE}" />
34                                                 </f:facet>
35
36                                                 <h:outputText value="#{cat.categoryTitle}" />
37                                         </h:column>
38
39                                         <h:column>
40                                                 <f:facet name="header">
41                                                         <h:outputText value="#{msg.ADMIN_PARENT_CATEGORY}" />
42                                                 </f:facet>
43
44                                                 <h:outputText value="#{cat.parentCategory.categoryId}" />
45                                         </h:column>
46                                 </h:dataTable>
47                         </div>
48
49                         <div class="para">
50                                 <h:form id="add_category">
51                                         <div class="table">
52                                                 <div class="table_header">
53                                                         <h:outputText value="#{msg.ADMIN_ADD_CATEGORY_TITLE}" />
54                                                 </div>
55
56                                                 <fieldset id="product_data">
57                                                         <legend>
58                                                                 <h:outputText value="#{msg.PLEASE_FILL_ALL_FIELDS}" />
59                                                         </legend>
60
61                                                         <div class="table_row">
62                                                                 <div class="table_left">
63                                                                         <h:outputText value="#{msg.ADMIN_ENTER_CATEGORY_TITLE}" />
64
65                                                                         <div class="tiny">
66                                                                                 <h:outputText value="#{msg.ADMIN_ENTER_CATEGORY_TITLE_EXAMPLE}" />
67                                                                         </div>
68                                                                 </div>
69
70                                                                 <div class="table_right">
71                                                                         <h:inputText class="input" id="guest_title" value="#{adminCategoryController.categoryTitle}" size="10" maxlength="255" required="true" />
72                                                                 </div>
73
74                                                                 <div class="clear"></div>
75                                                         </div>
76
77                                                         <div class="table_row">
78                                                                 <div class="table_left">
79                                                                         <h:outputText value="#{msg.ADMIN_PARENT_CATEGORY}" />
80                                                                 </div>
81
82                                                                 <div class="table_right">
83                                                                         <ui:include src="/WEB-INF/templates/admin/category/admin_parent_category_selection_box.tpl" />
84                                                                 </div>
85
86                                                                 <div class="clear"></div>
87                                                         </div>
88                                                 </fieldset>
89
90                                                 <div class="table_footer">
91                                                         <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
92                                                         <h:commandButton class="submit" type="submit" action="#{adminCategoryController.addCategory()}" value="#{msg.ADMIN_BUTTON_ADD_CATEGORY}" />
93                                                 </div>
94                                         </div>
95                                 </h:form>
96                         </div>
97                 </ui:define>
98         </ui:composition>
99 </html>