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">
22 <h:dataTable headerClass="table_header_column" rowClasses="table_row" styleClass="table" id="categories" value="#{controller.allCategories}" var="cat">
24 <f:facet name="header">Auswählen:</f:facet>
26 <h:selectBooleanCheckbox class="input" value="true" />
30 <f:facet name="header">Bezeichnung:</f:facet>
35 <f:facet name="header">Elternkategorie:</f:facet>
40 <div class="table_footer">
41 <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
42 <h:commandButton class="submit" type="submit" id="edit" action="#{admin_category.editCategory(category)}" value="Ändern" />
43 <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteCategory(category)}" value="Löschen" />
49 <h:form acceptcharset="utf-8" id="add_category">
51 <div class="table_header">
52 Neue Kategorie hinzufügen:
55 <fieldset id="product_data">
56 <legend>Bitte alle Felder ausfüllen:</legend>
58 <div class="table_row">
59 <div class="table_left">
61 <div class="tiny">(z.B. <em>Pizzen</em>)</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">
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="Formular zurücksetzen" />
86 <h:commandButton class="submit" type="submit" action="#{admin_category.addCategory()}" value="Hinzufügen" />
93 <ui:define name="footer">
94 <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />