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">Kategorien</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 Kategorien administrieren
19 <ui:define name="content">
21 <h:form acceptcharset="utf-8" id="form">
25 <th class="table_header_column">
28 <th class="table_header_column">
31 <th class="table_header_column">
38 <ui:repeat var="category" value="#{controller.allCategories}" rendered="#{category != null}">
39 <h:outputText value="#{category}" />
43 #{category.categoryId}:
44 <h:selectBooleanCheckbox class="input" id="categoryId" binding="#{category.categoryId}" value="true" />
50 #{controller.generateLinkForParent(category)}
57 <td colspan="3" class="table_footer">
58 <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
59 <h:commandButton class="submit" type="submit" id="edit" action="#{admin_category.editCategory(category)}" value="Ändern" />
60 <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteCategory(category)}" value="Löschen" />
69 <h:form acceptcharset="utf-8" id="add_category">
71 <div class="table_header">
72 Neue Kategorie hinzufügen:
75 <fieldset id="product_data">
76 <legend>Bitte alle Felder ausfüllen:</legend>
78 <div class="table_row">
79 <div class="table_left">
81 <div class="tiny">(z.B. <em>Pizzen</em>)</div>
84 <div class="table_right">
85 <input class="input" type="text" name="title" size="10" maxlength="255" />
88 <div class="clear"></div>
91 <div class="table_row">
92 <div class="table_left">
96 <div class="table_right">
97 <ui:include src="/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl" />
100 <div class="clear"></div>
104 <div class="table_footer">
105 <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
106 <h:commandButton class="submit" type="submit" action="#{admin_category.addCategory()}" value="Hinzufügen" />
113 <ui:define name="footer">
114 <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />