]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/index.xhtml
Continued:
[pizzaservice-war.git] / web / index.xhtml
index f682c0ea2db54c3f116d956176d4bbe104321e94..77afb9fc2c2782e7c30f1bbb5bf4f15bc341f853 100644 (file)
@@ -1,3 +1,5 @@
+<?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/guest/guest_base.tpl">
-               <ui:define name="title">Willkommen!</ui:define>
-
-               <ui:define name="menu">
-                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
-               </ui:define>
+               <ui:define name="title">#{msg.PAGE_TITLE_INDEX_WELCOME}</ui:define>
 
                <ui:define name="content_header">
-                       Willkommen zum Pizza-Service
+                       #{msg.CONTENT_TITLE_INDEX_WELCOME}
                </ui:define>
 
                <ui:define name="content">
                        <div class="table">
                                <div class="table_header">
-                                       Folgendes kann bestellt werden:
+                                       #{msg.FOLLOWING_PRODUCTS_ARE_AVAILABLE}
                                </div>
                        </div>
 
                                <h:column>
                                        <div id="main_item_container">
                                                <div class="item_title">
-                                                        #{product.title}
+                                                       #{product.productTitle}
                                                </div>
 
                                                <div class="item_content">
                                                        <div class="table_left">
                                                                <div class="item_actions">
                                                                        <ui:fragment rendered="#{!basketController.isProductAdded(product)}">
-                                                                               <h:form acceptcharset="utf-8" id="add_item">
-                                                                                       <h:commandButton class="submit" id="add" value="Hinzufügen" action="#{basketController.addItem(product)}" title="#{msg.BUTTON_TITLE_ADD_ITEM_TO_BASKET}" />
+                                                                               <h:form id="add_item">
+                                                                                       <h:commandButton class="submit" id="add" value="#{msg.ADMIN_ADD_ITEM_TO_BASKET}" action="#{basketController.addItem(product)}" title="#{msg.BUTTON_TITLE_ADD_ITEM_TO_BASKET}" />
 
-                                                                                       <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{basketController.amount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
+                                                                                       <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{basketController.orderedAmount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
                                                                                                <!--
                                                                                                If the customer wants to order more, he need to call in.
                                                                                                //-->
@@ -58,7 +56,7 @@
                                                                                </div>
 
                                                                                <div class="item_basket_link">
-                                                                                       <h:link outcome="basket" title="Zum Warenkorb" value="Im Warenkorb ändern" />
+                                                                                       <h:link outcome="basket" title="#{msg.LINK_TO_BASKET_TITLE}" value="#{msg.LINK_CHANGE_IN_BASKET}" />
                                                                                </div>
 
                                                                                <div class="clear"></div>
 
                                                        <div class="table_right">
                                                                <div class="item_price">
-                                                                       Einzelpreis:
+                                                                       #{msg.SINGLE_ITEM_PRICE}
                                                                        <h:outputText class="price" value="#{product.price}">
                                                                                <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
                                                                        </h:outputText>
                                                                </div>
 
                                                                <div class="item_total_price">
-                                                                       Zwischensumme:
-                                                                       <h:outputText class="price" value="Nicht bestellt." rendered="#{!basketController.isProductAdded(product)}" />
+                                                                       #{msg.TOTAL_ITEM_PRICE}
+                                                                       <h:outputText class="price" value="#{msg.ITEM_NOT_ORDERED}" rendered="#{!basketController.isProductAdded(product)}" />
                                                                        <h:outputText class="price" value="#{basketController.calculateCurrentItemPrice()}" rendered="#{basketController.isProductAdded(product)}">
                                                                                <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
                                                                        </h:outputText>
@@ -90,7 +88,7 @@
                        </h:dataTable>
 
                        <div id="totals_container">
-                               Gesamtsumme:
+                               #{msg.TOTAL_ORDER_PRICE}
                                <h:outputText class="price" id="total_sum" value="#{basketController.calculateTotalPrice()}">
                                        <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
                                </h:outputText>