X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=web%2Findex.xhtml;h=0ece4d80411345fd1ae2dc1b3a61531ebd31e610;hb=8a39d893b5c1ddeeff6c77fa05e6f2ef356edc8a;hp=bf2e0c5ab3306516363aa6224c19ccb76691dbce;hpb=1d6fe4e254b48a36d3149928ff7f426c56d6c4ec;p=pizzaservice-war.git diff --git a/web/index.xhtml b/web/index.xhtml index bf2e0c5a..0ece4d80 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(); + +
+ Anzahl: + #{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_ITEM_PRICE} + + + +
- // Unmark as ordered - app.unmarkProductAsOrdered(product, session); - %> - - - - - - - - - - - - - <%=product.getTitle()%> - - - <%=product.getPrice()%> - - - - <% - } - %> -
-
+
+ #{msg.TOTAL_ITEM_PRICE} + + + + +
+
- +
+
+
+ + - +
+ #{msg.TOTAL_ORDER_PRICE} + + + +
+ +