1 <?xml version="1.0" encoding="UTF-8" ?>
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:ui="http://java.sun.com/jsf/facelets"
4 xmlns:h="http://xmlns.jcp.org/jsf/html"
5 xmlns:f="http://xmlns.jcp.org/jsf/core"
8 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
9 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_CATEGORIES}</ui:define>
11 <ui:define name="menu">
12 <ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
15 <ui:define name="content_header">
16 #{msg.SUB_TITLE_ADMIN_CATEGORIES}
19 <ui:define name="content">
21 <h:form acceptcharset="utf-8" id="form">
22 <h:dataTable headerClass="table_header_column" rowClasses="table_row" styleClass="table" id="categories" value="#{controller.allCategories}" var="cat">
24 <f:facet name="header">#{msg.SELECT_ENTRY}</f:facet>
26 <h:selectBooleanCheckbox class="input" value="true" />
30 <f:facet name="header">#{msg.ADMIN_ENTER_CATEGORY_TITLE}</f:facet>
35 <f:facet name="header">#{msg.ADMIN_PARENT_CATEGORY}</f:facet>
40 <div class="table_footer">
41 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
42 <h:commandButton class="submit" type="submit" id="edit" action="#{admin_category.editCategory(cat)}" value="#{msg.BUTTON_EDIT_ENTRIES}" />
43 <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteCategory(cat)}" value="#{msg.BUTTON_DELETE_ENTRIES}" />
49 <h:form acceptcharset="utf-8" id="add_category">
51 <div class="table_header">
52 #{msg.ADMIN_ADD_CATEGORY_TITLE}
55 <fieldset id="product_data">
56 <legend>#{msg.PLEASE_FILL_ALL_FIELDS}</legend>
58 <div class="table_row">
59 <div class="table_left">
60 #{msg.ADMIN_ENTER_CATEGORY_TITLE}
61 <div class="tiny">(#{msg.ADMIN_ENTER_CATEGORY_TITLE_EXAMPLE})</div>
64 <div class="table_right">
65 <h:inputText class="input" id="title" value="#{admin_category.title}" size="10" maxlength="255" required="true" />
68 <div class="clear"></div>
71 <div class="table_row">
72 <div class="table_left">
73 #{msg.ADMIN_PARENT_CATEGORY}
76 <div class="table_right">
77 <ui:include src="/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl" />
80 <div class="clear"></div>
84 <div class="table_footer">
85 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
86 <h:commandButton class="submit" type="submit" action="#{admin_category.addCategory()}" value="#{msg.BUTTON_ADD_CATEGORY}" />
93 <ui:define name="footer">
94 <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />