1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
5 xmlns:h="http://xmlns.jcp.org/jsf/html"
6 xmlns:f="http://xmlns.jcp.org/jsf/core">
7 <ui:define name="guest_title">
8 <h:outputText value="#{msg.PAGE_TITLE_INDEX_SHOW_BASKET}" />
11 <ui:define name="content_header">
12 <h:outputText value="#{msg.CONTENT_TITLE_INDEX_SHOW_BASKET}" />
15 <ui:define name="content">
16 <h:dataTable id="table_show_basket" var="item" value="#{basketController.allItems()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_SHOW_BASKET}" rendered="#{basketController.hasItems()}">
18 <f:facet name="header">
19 <h:outputText value="#{msg.GUEST_ITEM_TITLE}" />
22 <ui:fragment rendered="#{item.isProductType()}">
23 <h:outputText value="#{item.itemProduct.productTitle}" />
28 <f:facet name="header">
29 <h:outputText value="#{msg.SINGLE_PRODUCT_PRICE}" />
32 <div class="item_price">
33 <ui:fragment rendered="#{item.isProductType()}">
34 <h:outputText styleClass="price" value="#{item.itemProduct.productPrice}">
35 <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
42 <f:facet name="header">
43 <h:outputText value="#{msg.CHANGE_ITEM_AMOUNT}" />
46 <h:form id="form_add_item">
47 <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.doChangeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
49 <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.orderedAmount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
51 If the customer wants to order more, he need to call in.
53 <f:validator for="amount" validatorId="ItemAmountValidator" />
59 <f:facet name="header">
60 <h:outputText value="#{msg.TOTAL_ITEM_PRICE}" />
63 <div class="item_total_price">
64 <h:outputText styleClass="price" id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
65 <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
71 <ui:include src="/WEB-INF/templates/basket/total_sum.tpl" />
73 <div class="continue_checkout">
74 <h:link class="checkout_link" id="checkout" value="#{msg.LINK_CONTINUE_TO_CHECKOUT}" outcome="checkout" />