1 <html metal:use-macro="here/main_template/macros/master"
2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n">
7 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
8 <metal:block metal:fill-slot="javascript_head_slot">
9 <script type="text/javascript" tal:attributes="src here/cart_listing.js/absolute_url"></script>
12 <body i18n:domain="portfolio">
13 <div metal:fill-slot="main_no_tabs"
15 <div tal:condition="not:options/empty">
16 <div metal:use-macro="here/sell_macros/macros/sell_steps"></div>
17 <form method="post" tal:condition="not:options/empty" tal:attributes="action string:$portal_url/my_cart">
18 <table class="listing" cellspacing="0">
20 <td colspan="3"><br/></td>
22 <input type="submit" tal:attributes="name options/nextStep/name; value options/nextStep/value"/>
26 <th i18n:translate="">Image</th>
27 <th i18n:translate="" style="width:30em">Printing format and type</th>
28 <th i18n:translate="">Quantity</th>
29 <th colspan="3" i18n:translate="">Amount (incl tax)</th>
31 <tbody id="cart_content">
32 <tr tal:repeat="i options/infos" tal:attributes="class python:repeat['i'].odd() and 'odd' or 'even'">
35 tal:attributes="src i/thumbUrl;
41 <div style="font-weight:bold" tal:content="i/title"></div>
42 <dl class="FieldHelp">
43 <dd tal:content="i/description"></dd>
47 <input type="text" size="2"
48 tal:attributes="value i/quantity;
49 name python:'%s_%s.quantity:record' % (i['cmf_uid'], i['templateId']);"/>
51 <td tal:content="i/amount"></td>
53 <input type="image" alt="refresh amount" title="refresh amount" width="16" height="16"
54 tal:attributes="src string:$portal_url/refresh.png;
55 name python:'%s_%s.refresh:record' % (i['cmf_uid'], i['templateId'])"
56 i18n:attributes="alt;title"/>
59 <input type="image" alt="delete" title="delete" width="16" height="16"
60 tal:attributes="src string:$portal_url/trash.png;
61 name python:'%s_%s.delete:record' % (i['cmf_uid'], i['templateId'])"
62 i18n:attributes="alt;title"/>
69 <th i18n:translate="">Prints</th>
70 <th i18n:translate="">Total</th>
71 <th colspan="2"><br/></th>
74 <td colspan="2"><br/></td>
75 <td tal:content="options/quantityTotal">quantity total</td>
76 <td tal:content="python:'%s €' % options['pricesTotal'].taxed">prices total</td>
77 <td colspan="2"><br/></td>
79 <tr tal:define="discount options/discount" tal:condition="discount">
80 <th colspan="3" style="text-align:right;padding-right:1em" i18n:translate="">Discount</th>
81 <td><span tal:replace="discount"/> %</td>
82 <td colspan="2"><br/></td>
85 <th colspan="3" style="text-align:right;padding-right:1em" i18n:translate="">Shipping</th>
86 <td tal:content="python:'%s €' % options['shippingFees'].taxed">2</td>
87 <td colspan="2"><br/></td>
90 <th colspan="3" style="text-align:right; padding-right:1em" i18n:translate="">VAT</th>
91 <td tal:content="python:'%s €' % options['totalAmount'].tax">2</td>
92 <td colspan="2"><br/></td>
95 <th colspan="3" style="text-align:right;padding-right:1em" i18n:translate="">Total amount to pay</th>
96 <td tal:content="python:'%s €' % options['totalAmount'].taxed"
97 style="color:#f28c18">2</td>
98 <td colspan="2"><br/></td>
102 <td colspan="3"><br/></td>
104 <input type="submit" tal:attributes="name options/nextStep/name; value options/nextStep/value"/>
109 <script type="text/javascript">
112 new CartListing(document.getElementById('cart_content'));
117 <div tal:condition="options/empty" tal:omit-tag="">
118 <h2 i18n:translate="">My cart</h2>
119 <em i18n:translate="">Your cart is currently empty.</em>