Insertion sélection après la cible.
[Portfolio.git] / skins / my_cart_template.pt
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">
5 <head>
6 <title>titre</title>
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>
10 </metal:block>
11 </head>
12 <body i18n:domain="portfolio">
13 <div metal:fill-slot="main_no_tabs"
14 tal:omit-tag="">
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">
19 <tr>
20 <td colspan="3"><br/></td>
21 <td colspan="3">
22 <input type="submit" tal:attributes="name options/nextStep/name; value options/nextStep/value"/>
23 </td>
24 </tr>
25 <tr>
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>
30 </tr>
31 <tbody id="cart_content">
32 <tr tal:repeat="i options/infos" tal:attributes="class python:repeat['i'].odd() and 'odd' or 'even'">
33 <td>
34 <img border="0"
35 tal:attributes="src i/thumbUrl;
36 alt i/alt;
37 height i/thumbHeight;
38 width i/thumbWidth"/>
39 </td>
40 <td>
41 <div style="font-weight:bold" tal:content="i/title"></div>
42 <dl class="FieldHelp">
43 <dd tal:content="i/description"></dd>
44 </dl>
45 </td>
46 <td>
47 <input type="text" size="2"
48 tal:attributes="value i/quantity;
49 name python:'%s_%s.quantity:record' % (i['cmf_uid'], i['templateId']);"/>
50 </td>
51 <td tal:content="i/amount"></td>
52 <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"/>
57 </td>
58 <td>
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"/>
63 </td>
64 </tr>
65 </tbody>
66 <tbody class="total">
67 <tr>
68 <th colspan="2">
69 <th i18n:translate="">Prints</th>
70 <th i18n:translate="">Total</th>
71 <th colspan="2"><br/></th>
72 </tr>
73 <tr>
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>
78 </tr>
79 <tr>
80 <th colspan="3" style="text-align:right;padding-right:1em" i18n:translate="">Shipping</th>
81 <td tal:content="python:'%s €' % options['shippingFees'].taxed">2</td>
82 <td colspan="2"><br/></td>
83 </tr>
84 <tr>
85 <th colspan="3" style="text-align:right; padding-right:1em" i18n:translate="">VAT</th>
86 <td tal:content="python:'%s €' % options['totalAmount'].tax">2</td>
87 <td colspan="2"><br/></td>
88 </tr>
89 <tr>
90 <th colspan="3" style="text-align:right;padding-right:1em" i18n:translate="">Total amount to pay</th>
91 <td tal:content="python:'%s €' % options['totalAmount'].taxed"
92 style="color:#f28c18">2</td>
93 <td colspan="2"><br/></td>
94 </tr>
95 </tbody>
96 <tr>
97 <td colspan="3"><br/></td>
98 <td colspan="3">
99 <input type="submit" tal:attributes="name options/nextStep/name; value options/nextStep/value"/>
100 </td>
101 </tr>
102 </table>
103 </form>
104 <script type="text/javascript">
105 // <!--
106 (function(){
107 new CartListing(document.getElementById('cart_content'));
108 })();
109 // -->
110 </script>
111 </div>
112 <div tal:condition="options/empty" tal:omit-tag="">
113 <h2 i18n:translate="">My cart</h2>
114 <em i18n:translate="">Your cart is currently empty.</em>
115 </div>
116 </div>
117 </body>
118 </html>