96c984a56fabd82ed912d8b8d114cd02062c6863
[photoprint.git] / skins / order_view_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
9 </head>
10 <body i18n:domain="photoprint">
11 <div metal:fill-slot="main_no_tabs" tal:omit-tag="">
12 <div tal:condition="options/orderIsCart" tal:omit-tag="">
13 <div tal:define="step_authentication python:True;
14 step_shipping python:True;
15 step_payment python:True;
16 step_confirmation python:options['wfstate'] != 'recorded'">
17 <div metal:use-macro="here/sell_macros/macros/sell_steps">
18 sell steps macro
19 </div>
20 </div>
21 </div>
22 <h1 i18n:translate="" style="margin-bottom:0">
23 Order Nb. <span tal:content="here/getId" tal:omit-tag="" i18n:name="order_number"/>
24 </h1>
25 <table cellpadding="5">
26 <tr>
27 <td colspan="50%">
28 <h2 i18n:translate="" style="margin:0">Billing</h2>
29 <table tal:define="billing here/billing" class="listing">
30 <tr class="odd">
31 <th i18n:translate="">Name</th>
32 <td tal:content="billing/name">billing name</td>
33 </tr>
34 <tr>
35 <th i18n:translate="">Address</th>
36 <td tal:content="billing/address">billin address</td>
37 </tr>
38 <tr>
39 <th i18n:translate="">City</th>
40 <td tal:content="billing/city">billing city</td>
41 </tr>
42 <tr>
43 <th i18n:translate="">Zip code</th>
44 <td tal:content="billing/zipcode">billing zip code</td>
45 </tr>
46 <tr>
47 <th i18n:translate="">Country</th>
48 <td tal:content="billing/country" i18n:domain="iso_3166_1" i18n:translate="">Country</td>
49 </tr>
50 </table>
51 </td>
52 <td>
53 <h2 i18n:translate="" style="margin:0">Shipping</h2>
54 <table tal:define="shipping here/shipping" class="listing">
55 <tr>
56 <th i18n:translate="">Name</th>
57 <td tal:content="shipping/name">shpping name</td>
58 </tr>
59 <tr>
60 <th i18n:translate="">Address</th>
61 <td tal:content="shipping/address">shpping address</td>
62 </tr>
63 <tr>
64 <th i18n:translate="">City</th>
65 <td tal:content="shipping/city">shipping city</td>
66 </tr>
67 <tr>
68 <th i18n:translate="">Zip code</th>
69 <td tal:content="shipping/zipcode">shipping zip code</td>
70 </tr>
71 <tr>
72 <th i18n:translate="">Country</th>
73 <td tal:content="shipping/country" i18n:domain="iso_3166_1" i18n:translate="">chipping country</td>
74 </tr>
75 </table>
76 </td>
77 <td>
78 <img tal:define="tr nocall:modules/Products/photoprint/utils/translate"
79 tal:attributes="src python:'%s/order_states/%s' % (portal_url, tr('%s-en.gif' % options['wfstate']))"
80 style="float:right"/>
81 </td>
82 <td tal:condition="workflow_actions" class="boxes_container">
83 <h3 i18n:translate="">Processing</h3>
84 <ul>
85 <li tal:repeat="action workflow_actions">
86 <a tal:attributes="href action/url" tal:content="action/title" i18n:translate=""></a>
87 </li>
88 </ul>
89 </td>
90 </tr>
91 </table>
92 <table class="listing" cellspacing="0">
93 <col span="2"/>
94 <col span="4" style="text-align:right"/>
95 <tr>
96 <th i18n:translate="">Image</th>
97 <th i18n:translate="" style="width:30em">Printing format and type</th>
98 <th i18n:translate="">Quantity</th>
99 <th i18n:translate="">Unit price</th>
100 <th i18n:translate="">VAT (%)</th>
101 <th i18n:translate="">Amount<br/>(tax incl.)</th>
102 </tr>
103 <tr tal:repeat="i options/infos" tal:attributes="class python:repeat['i'].odd() and 'odd' or 'even'">
104 <td>
105 <img border="0" tal:condition="python:i.has_key('thumbUrl')"
106 tal:attributes="src i/thumbUrl;
107 alt i/title;
108 height i/thumbHeight;
109 width i/thumbWidth"/>
110 <em tal:condition="python:not i.has_key('thumbUrl')" i18n:translate="">image removed</em>
111 </td>
112 <td>
113 <div style="font-weight:bold" tal:content="i/title"></div>
114 <dl class="FieldHelp">
115 <dd tal:content="i/description"></dd>
116 </dl>
117 </td>
118 <td class="num" tal:content="python:i['quantity']">12</td>
119 <td class="num" tal:content="python:'%s €' % i['unit_price'].value"></td>
120 <td class="num" tal:content="python:i['unit_price'].vat"></td>
121 <td class="num" tal:content="python:'%s €' % i['total'].taxed" style="border-right:1px solid black"></td>
122 </tr>
123 <tbody class="total">
124 <tr>
125 <th colspan="2"></th>
126 <th class="num" tal:content="options/quantity"></th>
127 <th class="num">—</th>
128 <th class="num">—</th>
129 <th class="num" tal:content="python:'%s €' % options['pricesSum'].taxed"
130 style="border-right:1px solid black"></th>
131 </tr>
132 <tr tal:condition="options/discount">
133 <td class="num" colspan="5" i18n:translate="">Discount</td>
134 <td class="num"><span tal:replace="options/discount"/> %</td>
135 </tr>
136 <tr>
137 <td class="num" colspan="5" i18n:translate="">Shipping</td>
138 <td class="num" tal:content="python:'%s €' % options['shippingFees'].taxed"></td>
139 </tr>
140 <tr>
141 <td class="num" colspan="5" i18n:translate="">VAT</td>
142 <td class="num" tal:content="python:'%s €' % options['total'].tax"></td>
143 </tr>
144 <tr>
145 <th class="num" colspan="5" i18n:translate="">Total amount to pay</th>
146 <td class="num" style="color:#f28c18"
147 tal:content="python:'%s €' % options['total'].taxed">montant total</td>
148 </tr>
149 </tbody>
150 <tfoot>
151 <tr tal:define="checkout options/checkout|nothing" tal:condition="checkout">
152 <td><br/></td>
153 <td colspan="5">
154 <div style="text-align:right">
155 <span i18n:translate="" tal:omit-tag="">Pay with PayPal:</span>
156 <a href="#" tal:attributes="href checkout/url"
157 title="Pay with PayPal" i18n:attributes="title">
158 <img tal:attributes="src string:$portal_url/paypal-button.png"
159 width="72" height="45" style="vertical-align:middle"
160 alt="Pay with PayPal" i18n:attributes="alt"/>
161 </a>
162 </div>
163 <p i18n:translate="">
164 Please check the preceding table and proceed to payment. By
165 clicking on the PayPal button, you will temporarily leave the
166 site: you will be redirected to the payment provider PayPal.
167 Please follow given instructions. The transaction will be final
168 as soon as you are back on the <em i18n:name="site_name"
169 tal:content="portal_object/Title">portal title</em> site. For
170 your information, there is no need to create a PayPal account,
171 even if you will be prompted: you can simply use your credit
172 card. If you already have a PayPal account, you can, at your
173 convenience, pay by PayPal transfer or by credit card.
174 </p>
175 </td>
176 </tr>
177 </tfoot>
178 </table>
179 <br/>
180 <h3 i18n:translate="">Order processing history</h3>
181 <table cellspacing="0" class="listing"
182 tal:define="history options/wfhistory"
183 tal:condition="history">
184 <tr>
185 <th i18n:translate="">Date</th>
186 <th i18n:translate="">Actor</th>
187 <th i18n:translate="">Action</th>
188 </tr>
189 <div tal:repeat="item python:history[::-1]" tal:omit-tag="">
190 <tr tal:define="oddrow repeat/item/odd" tal:attributes="class python:test(oddrow, 'even', 'odd')"
191 tal:condition="item/action">
192 <td tal:content="python:item['time'].strftime(locale_date_fmt)">time</td>
193 <td tal:condition="python:not item['action'].startswith('auto_')"
194 tal:content="python:mtool.getMemberFullNameById(item['actor'], nameBefore=0)">actor</td>
195 <td tal:content="item/action" i18n:translate=""></td>
196 </tr>
197 </div>
198 </table>
199 </div>
200 </body>
201 </html>