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"
9 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
10 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_CATEGORIES}</ui:define>
12 <ui:define name="menu">
13 <ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
16 <ui:define name="content_header">
17 #{msg.SUB_TITLE_ADMIN_CATEGORIES}
20 <ui:define name="content">
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">
25 <f:facet name="header">#{msg.SELECT_ENTRY}</f:facet>
27 <h:selectBooleanCheckbox class="input" value="true" />
31 <f:facet name="header">#{msg.ADMIN_ENTER_CATEGORY_TITLE}</f:facet>
36 <f:facet name="header">#{msg.ADMIN_PARENT_CATEGORY}</f:facet>
37 #{cat.parentCategory.categoryId}
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}" />
50 <h:form acceptcharset="utf-8" id="add_category">
52 <div class="table_header">
53 #{msg.ADMIN_ADD_CATEGORY_TITLE}
56 <fieldset id="product_data">
57 <legend>#{msg.PLEASE_FILL_ALL_FIELDS}</legend>
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>
65 <div class="table_right">
66 <h:inputText class="input" id="title" value="#{admin_category.title}" size="10" maxlength="255" required="true" />
69 <div class="clear"></div>
72 <div class="table_row">
73 <div class="table_left">
74 #{msg.ADMIN_PARENT_CATEGORY}
77 <div class="table_right">
78 <ui:include src="/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl" />
81 <div class="clear"></div>
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}" />
94 <ui:define name="footer">
95 <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />