]> git.mxchange.org Git - pizzaservice-war.git/blob - web/basket.xhtml
fixed German file
[pizzaservice-war.git] / web / basket.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         >
10
11         <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
12                 <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_SHOW_BASKET}</ui:define>
13
14                 <ui:define name="content_header">
15                         #{msg.CONTENT_TITLE_INDEX_SHOW_BASKET}
16                 </ui:define>
17
18                 <ui:define name="content">
19                         <h:dataTable id="table_show_basket" var="item" value="#{basketController.allItems()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_SHOW_BASKET}" rendered="#{basketController.hasItems()}">
20                                 <h:column>
21                                         <f:facet name="header">#{msg.GUEST_ITEM_TITLE}</f:facet>
22
23                                         <ui:fragment rendered="#{item.isProductType()}">
24                                                 #{item.itemProduct.productTitle}
25                                         </ui:fragment>
26                                 </h:column>
27
28                                 <h:column>
29                                         <f:facet name="header">#{msg.SINGLE_PRODUCT_PRICE}</f:facet>
30
31                                         <div class="item_price">
32                                                 <ui:fragment rendered="#{item.isProductType()}">
33                                                         <h:outputText styleClass="price" value="#{item.itemProduct.productPrice}">
34                                                                 <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
35                                                         </h:outputText>
36                                                 </ui:fragment>
37                                         </div>
38                                 </h:column>
39
40                                 <h:column>
41                                         <f:facet name="header">#{msg.CHANGE_ITEM_AMOUNT}</f:facet>
42
43                                         <h:form id="add_item">
44                                                 <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.doChangeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
45
46                                                 <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.orderedAmount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
47                                                         <!--
48                                                         If the customer wants to order more, he need to call in.
49                                                         //-->
50                                                         <f:validator for="amount" validatorId="ItemAmountValidator" />
51                                                 </h:inputText>
52                                         </h:form>
53                                 </h:column>
54
55                                 <h:column>
56                                         <f:facet name="header">#{msg.TOTAL_ITEM_PRICE}</f:facet>
57
58                                         <div class="item_total_price">
59                                                 <h:outputText styleClass="price" id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
60                                                         <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
61                                                 </h:outputText>
62                                         </div>
63                                 </h:column>
64                         </h:dataTable>
65
66                         <ui:include src="/WEB-INF/templates/basket/total_sum.tpl" />
67
68                         <div class="continue_checkout">
69                                 <h:link class="checkout_link" id="checkout" value="#{msg.LINK_CONTINUE_TO_CHECKOUT}" outcome="checkout" />
70                         </div>
71                 </ui:define>
72         </ui:composition>
73 </html>