]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/basket/full_basket.tpl
removed recruiter stuff + re-added missing strings
[pizzaservice-war.git] / web / WEB-INF / templates / basket / full_basket.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <h:dataTable id="table_show_full_basket" var="item" value="#{basketController.allItems()}" styleClass="table" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_FULL_BASKET}" rendered="#{basketController.hasItems()}">
9                 <h:column>
10                         <f:facet name="header">#{msg.GUEST_ITEM_TITLE}</f:facet>
11
12                         <ui:fragment rendered="#{item.isProductType()}">
13                                 #{item.itemProduct.productTitle}
14                         </ui:fragment>
15                 </h:column>
16
17                 <h:column>
18                         <f:facet name="header">#{msg.SINGLE_PRODUCT_PRICE}</f:facet>
19
20                         <div class="item_price">
21                                 <ui:fragment rendered="#{item.isProductType()}">
22                                         <h:outputText styleClass="price" value="#{item.itemProduct.productPrice}">
23                                                 <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
24                                         </h:outputText>
25                                 </ui:fragment>
26                         </div>
27                 </h:column>
28
29                 <h:column>
30                         <f:facet name="header">#{msg.CHANGE_ITEM_AMOUNT}</f:facet>
31
32                         <h:form id="add_item">
33                                 <h:outputText id="amount" value="#{item.orderedAmount}">
34                                 </h:outputText>
35                         </h:form>
36                 </h:column>
37
38                 <h:column>
39                         <f:facet name="header">#{msg.TOTAL_ITEM_PRICE}</f:facet>
40
41                         <div class="item_total_price">
42                                 <h:outputText styleClass="price" id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
43                                         <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
44                                 </h:outputText>
45                         </div>
46                 </h:column>
47         </h:dataTable>
48 </ui:composition>