]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/index.xhtml
fixed German file
[pizzaservice-war.git] / web / index.xhtml
index 75dc3886658dd1215edf3b7af7bd17efc8ad371b..993dec3b1f4af9f1216d2aae51ef2fe7cd0d50c1 100644 (file)
@@ -1,11 +1,12 @@
 <?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"
-         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
-         xmlns:f="http://xmlns.jcp.org/jsf/core"
-         >
+<html
+       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html"
+       xmlns:f="http://xmlns.jcp.org/jsf/core"
+       >
 
        <!--
        TODO: Not used:
@@ -26,7 +27,7 @@
                                </div>
                        </div>
 
-                       <h:dataTable id="table_show_available_products" var="product" value="#{controller.availableProducts}" styleClass="table" summary="#{msg.TABLE_SUMMARY_INDEX_PRODUCTS}">
+                       <h:dataTable id="table_show_available_products" var="product" value="#{productController.availableProducts}" styleClass="table" summary="#{msg.TABLE_SUMMARY_INDEX_PRODUCTS}">
                                <h:column>
                                        <div id="main_item_container">
                                                <div class="item_title">
@@ -51,7 +52,7 @@
 
                                                                        <ui:fragment rendered="#{basketController.isProductAdded(product)}">
                                                                                <div class="item_amount">
-                                                                                       Anzahl:
+                                                                                       #{msg.ITEM_ORDER_AMOUNT}
                                                                                        #{basketController.getItemAmount(product)}
                                                                                </div>
 
 
                                                        <div class="table_right">
                                                                <div class="item_price">
-                                                                       #{msg.SINGLE_ITEM_PRICE}
-                                                                       <h:outputText class="price" value="#{product.price}">
+                                                                       #{msg.SINGLE_PRODUCT_PRICE}
+                                                                       <h:outputText styleClass="price" value="#{product.productPrice}">
                                                                                <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
                                                                        </h:outputText>
                                                                </div>
 
                                                                <div class="item_total_price">
                                                                        #{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)}">
+                                                                       <h:outputText styleClass="price" value="#{msg.ITEM_NOT_ORDERED}" rendered="#{!basketController.isProductAdded(product)}" />
+                                                                       <h:outputText styleClass="price" value="#{basketController.calculateCurrentItemPrice()}" rendered="#{basketController.isProductAdded(product)}">
                                                                                <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
                                                                        </h:outputText>
                                                                </div>
@@ -89,7 +90,7 @@
 
                        <div id="totals_container">
                                #{msg.TOTAL_ORDER_PRICE}
-                               <h:outputText class="price" id="total_sum" value="#{basketController.calculateTotalPrice()}">
+                               <h:outputText styleClass="price" id="total_sum" value="#{basketController.calculateTotalPrice()}">
                                        <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
                                </h:outputText>
                        </div>