<?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
- 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"
- >
+<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
+ 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">
+ <ui:define name="guest_title">
+ <h:outputText value="#{msg.PAGE_TITLE_INDEX_SHOW_BASKET}" />
+ </ui:define>
- <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
- <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_SHOW_BASKET}</ui:define>
+ <ui:define name="content_header">
+ <h:outputText value="#{msg.CONTENT_TITLE_INDEX_SHOW_BASKET}" />
+ </ui:define>
- <ui:define name="content_header">
- #{msg.CONTENT_TITLE_INDEX_SHOW_BASKET}
- </ui:define>
+ <ui:define name="content">
+ <h:dataTable id="table_show_basket" var="item" value="#{basketController.allItems()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_SHOW_BASKET}" rendered="#{basketController.hasItems()}">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.GUEST_ITEM_TITLE}" />
+ </f:facet>
- <ui:define name="content">
- <h:dataTable id="table_show_basket" var="item" value="#{basketController.allItems()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_SHOW_BASKET}" rendered="#{basketController.hasItems()}">
- <h:column>
- <f:facet name="header">#{msg.GUEST_ITEM_TITLE}</f:facet>
+ <ui:fragment rendered="#{item.isProductType()}">
+ <h:outputText value="#{item.itemProduct.productTitle}" />
+ </ui:fragment>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.SINGLE_PRODUCT_PRICE}" />
+ </f:facet>
+
+ <div class="item_price">
<ui:fragment rendered="#{item.isProductType()}">
- #{item.itemProduct.productTitle}
+ <h:outputText styleClass="price" value="#{item.itemProduct.productPrice}">
+ <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
+ </h:outputText>
</ui:fragment>
- </h:column>
-
- <h:column>
- <f:facet name="header">#{msg.SINGLE_PRODUCT_PRICE}</f:facet>
+ </div>
+ </h:column>
- <div class="item_price">
- <ui:fragment rendered="#{item.isProductType()}">
- <h:outputText styleClass="price" value="#{item.itemProduct.productPrice}">
- <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
- </h:outputText>
- </ui:fragment>
- </div>
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.CHANGE_ITEM_AMOUNT}" />
+ </f:facet>
- <h:column>
- <f:facet name="header">#{msg.CHANGE_ITEM_AMOUNT}</f:facet>
+ <h:form id="form_add_item">
+ <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.doChangeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
- <h:form id="add_item">
- <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.doChangeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
+ <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.orderedAmount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
+ <!--
+ If the customer wants to order more, he need to call in.
+ //-->
+ <f:validator for="amount" validatorId="ItemAmountValidator" />
+ </h:inputText>
+ </h:form>
+ </h:column>
- <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.orderedAmount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
- <!--
- If the customer wants to order more, he need to call in.
- //-->
- <f:validator for="amount" validatorId="ItemAmountValidator" />
- </h:inputText>
- </h:form>
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.TOTAL_ITEM_PRICE}" />
+ </f:facet>
- <h:column>
- <f:facet name="header">#{msg.TOTAL_ITEM_PRICE}</f:facet>
-
- <div class="item_total_price">
- <h:outputText styleClass="price" id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
- <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
- </h:outputText>
- </div>
- </h:column>
- </h:dataTable>
+ <div class="item_total_price">
+ <h:outputText styleClass="price" id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
+ <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
+ </h:outputText>
+ </div>
+ </h:column>
+ </h:dataTable>
- <ui:include src="/WEB-INF/templates/basket/total_sum.tpl" />
+ <ui:include src="/WEB-INF/templates/basket/total_sum.tpl" />
- <div class="continue_checkout">
- <h:link class="checkout_link" id="checkout" value="#{msg.LINK_CONTINUE_TO_CHECKOUT}" outcome="checkout" />
- </div>
- </ui:define>
- </ui:composition>
-</html>
+ <div class="continue_checkout">
+ <h:link class="checkout_link" id="checkout" value="#{msg.LINK_CONTINUE_TO_CHECKOUT}" outcome="checkout" />
+ </div>
+ </ui:define>
+</ui:composition>