<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
- <ui:define name="admin_title">Produkte</ui:define>
+ <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_PRODUCTS}</ui:define>
<ui:define name="menu">
<ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
</ui:define>
<ui:define name="content_header">
- Diese Produkte wurden eingestellt
+ #{msg.SUB_TITLE_ADMIN_PRODUCTS}
</ui:define>
<ui:define name="content">
<div class="para">
<h:form acceptcharset="utf-8" id="form">
- <h:dataTable columnClasses="table_row" headerClass="table_header_column" id="product_table" var="pro" value="#{admin_product.allProducts}">
+ <h:dataTable headerClass="table_header_column" id="product_table" var="product" value="#{admin_product.allProducts}">
<h:column>
<f:facet name="header">Produktnummer:</f:facet>
- #{pro.id}:
- <h:selectBooleanCheckbox class="input" value="true" />
+ #{product.id}:<h:selectBooleanCheckbox class="input" value="true" />
</h:column>
<h:column>
- <f:facet name="header">Produktbezeichnung:</f:facet>
- #{pro.title}
+ <f:facet name="header">#{msg.ADMIN_ENTER_PRODUCT_TITLE}</f:facet>
+ #{product.title}
</h:column>
+
<h:column>
- <f:facet name="header">Einzelpreis:</f:facet>
- #{pro.price}
+ <f:facet name="header">#{msg.SINGLE_ITEM_PRICE}</f:facet>
+ #{product.price}
</h:column>
+
<h:column>
- <f:facet name="header">Kategorie:</f:facet>
- ${controller.getPrintableProduktCategory(product)}
+ <f:facet name="header">#{msg.CATEGORY}</f:facet>
+ #{product.categoryId}
</h:column>
+
<h:column>
- <f:facet name="header">Verfügbar:</f:facet>
- ${controller.getPrintableProductAvailability(product)}
+ <f:facet name="header">#{msg.IS_AVAILABLE}</f:facet>
+ #{product.available}
</h:column>
</h:dataTable>
<div class="table_footer">
- <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
- <h:commandButton class="submit" type="submit" id="edit" action="#{admin_product.ediProduct(product)}" value="Ändern" />
- <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteProduct(product)}" value="Löschen" />
+ <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton class="submit" type="submit" id="edit" action="#{admin_product.editProduct(product)}" value="#{msg.ADMIN_BUTTON_EDIT_ENTRIES}" />
+ <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteProduct(product)}" value="#{msg.ADMIN_BUTTON_DELETE_ENTRIES}" />
</div>
</h:form>
</div>
<h:form acceptcharset="utf-8" id="add_category">
<div class="table">
<div class="table_header">
- Neues Produkt hinzufügen:
+ #{msg.ADMIN_ADD_PRODUCT_TITLE}
</div>
<fieldset id="product_data">
- <legend>Bitte alle Felder ausfüllen:</legend>
+ <legend>#{msg.PLEASE_FILL_ALL_FIELDS}</legend>
<div class="table_row">
<div class="table_left">
- Produktbezeichnung:
- <div class="tiny">(z.B. <em>Pizza Italia</em>)</div>
+ #{msg.ADMIN_ENTER_PRODUCT_TITLE}
+ <div class="tiny">#{msg.ADMIN_ENTER_PRODUCT_TITLE_EXAMPLE}</div>
</div>
<div class="table_right">
- <h:inputText class="input" id="title" size="10" maxlength="255" />
+ <h:inputText class="input" id="title" size="10" maxlength="255" required="true" value="#{admin_product.title}" />
</div>
<div class="clear"></div>
<div class="table_row">
<div class="table_left">
- Einzelpreis:
+ #{msg.SINGLE_ITEM_PRICE}
<div class="tiny">(z.B. <em>50.0</em>)</div>
</div>
<div class="table_right">
- <h:inputText class="input" id="price" size="10" maxlength="255" />
+ <h:inputText class="input" id="price" size="10" maxlength="255" required="true" value="#{admin_product.price}" />
</div>
<div class="clear"></div>
<div class="table_row">
<div class="table_left">
- Kategorie:
+ #{msg.CATEGORY}
</div>
<div class="table_right">
<div class="table_row">
<div class="table_left">
- Verfügbar:
+ #{msg.IS_AVAILABLE}
</div>
<div class="table_right">
- <select class="select" name="available" size="1">
- <option value="true">Ja</option>
- <option value="false">Nein</option>
- </select>
+ <h:selectOneListbox required="true" id="available" value="#{admin_product.available}" size="1" class="select">
+ <f:selectItem itemValue="true" itemLabel="#{msg.YES}" />
+ <f:selectItem itemValue="false" itemLabel="#{msg.NO}" />
+ </h:selectOneListbox>
</div>
<div class="clear"></div>
</fieldset>
<div class="table_footer">
- <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
- <h:commandButton class="submit" type="submit" id="add" action="#{admin_product.addProduct()}" value="Hinzufügen" />
+ <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton class="submit" type="submit" id="add" action="#{admin_product.addProduct()}" value="#{msg.ADMIN_BUTTON_ADD_PRODUCT}" />
</div>
</div>
</h:form>
</div>
<div class="para">
- Hinweise zum Hinzufügen von Produkten:
+ #{msg.ADMIN_ADD_PRODUCT_NOTICE_TITLE}
<ul>
- <li>Beim Preis keine Währungszeichen (wie EUR usw.) eingeben.</li>
- <li>Kommastellen mit Punkt, nicht mit Komma abtrennen.</li>
- <li>Keine Tausendertrenner verwenden, auch keine Leerschritte.</li>
+ <li>#{msg.ADMIN_ADD_PRODUCT_NOTICE_LINE1}</li>
+ <li>#{msg.ADMIN_ADD_PRODUCT_NOTICE_LINE2}</li>
+ <li>#{msg.ADMIN_ADD_PRODUCT_NOTICE_LINE3}</li>
</ul>
</div>
</ui:define>