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="content_header">
13 #{msg.CONTENT_TITLE_ADMIN_CATEGORIES}
16 <ui:define name="content">
18 <h:dataTable id="categories" var="cat" value="#{shopController.allCategories}" styleClass="table" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_CATEGORY}">
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}" />
27 <f:facet name="header">#{msg.ADMIN_ENTER_CATEGORY_TITLE}</f:facet>
32 <f:facet name="header">#{msg.ADMIN_PARENT_CATEGORY}</f:facet>
33 #{cat.parentCategory.categoryId}
39 <h:form id="add_category">
41 <div class="table_header">
42 #{msg.ADMIN_ADD_CATEGORY_TITLE}
45 <fieldset id="product_data">
46 <legend>#{msg.PLEASE_FILL_ALL_FIELDS}</legend>
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>
54 <div class="table_right">
55 <h:inputText class="input" id="guest_title" value="#{adminCategoryController.categoryTitle}" size="10" maxlength="255" required="true" />
58 <div class="clear"></div>
61 <div class="table_row">
62 <div class="table_left">
63 #{msg.ADMIN_PARENT_CATEGORY}
66 <div class="table_right">
67 <ui:include src="/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl" />
70 <div class="clear"></div>
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}" />