X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=web%2Findex.xhtml;h=d769335f48debb3773660b9709d05be5e110ff34;hb=174600b4bd71ee38d6d6a31d232088b5aa12d58e;hp=bf2e0c5ab3306516363aa6224c19ccb76691dbce;hpb=2c82f6632a15ef29b0c4365225be5fb05d4ac225;p=pizzaservice-war.git diff --git a/web/index.xhtml b/web/index.xhtml index bf2e0c5a..d769335f 100644 --- a/web/index.xhtml +++ b/web/index.xhtml @@ -1,98 +1,97 @@ - + - - - - - - Willkommen - - - + + + + + + #{msg.PAGE_TITLE_INDEX_WELCOME} - + + #{msg.CONTENT_TITLE_INDEX_WELCOME} + -
-
-

Folgendes kann bestellt werden:

+ +
+
+ #{msg.FOLLOWING_PRODUCTS_ARE_AVAILABLE} +
-
- - Bestellen? - Anzahl: - Produkt: - Einzelpreis: - + + +
+
+ #{product.productTitle} +
- <% - // Get app instance - PizzaApplication app = PizzaServiceApplication.getInstance(application); +
+
+
+ + + - // Get Iterator - Iterator iterator = app.getAvailableProducts(); + + + + + + - // "Walk" through all products and unmark them as ordered - while (iterator.hasNext()) { - // Get product instance - Product product = iterator.next(); + +
+ #{msg.ITEM_ORDER_AMOUNT} + #{basketController.getItemAmount(product)} +
- // Get basket instance - Basket basket = ItemBasket.getInstance(session); + - // Create an item instance form this product - AddableBasketItem item = basket.getItem(product); +
+
+
+
- // Has it been already added to the basket? - if (item != null) { - // Some nice output ... - %> - - Warenkorb - <%=item.getAmount()%> - <%=product.getTitle()%> - <%=product.getPrice()%> - - <% - // Then skip this item - continue; - } +
+
+ #{msg.SINGLE_PRODUCT_PRICE} + + + +
- // Unmark as ordered - app.unmarkProductAsOrdered(product, session); - %> - - - - - - - - - - - - - <%=product.getTitle()%> - - - <%=product.getPrice()%> - - - - <% - } - %> -
-
+
+ #{msg.TOTAL_ITEM_PRICE} + + + + +
+
- +
+
+
+ + - +
+ #{msg.TOTAL_ORDER_PRICE} + + + +
+ +