imports obsolètes.
[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="translate nocall:modules/Products/photoprint/utils/translate;
79 tr python:lambda msg: translate(msg, here)"
80 tal:attributes="src python:'%s/order_states/%s' % (portal_url, tr('%s-en.gif' % options['wfstate']))"
81 style="float:right"/>
82 </td>
83 <td tal:condition="workflow_actions" class="boxes_container">
84 <h3 i18n:translate="">Processing</h3>
85 <ul>
86 <li tal:repeat="action workflow_actions">
87 <a tal:attributes="href action/url" tal:content="action/title" i18n:translate=""></a>
88 </li>
89 </ul>
90 </td>
91 </tr>
92 </table>
93 <table class="listing" cellspacing="0">
94 <col span="2"/>
95 <col span="4" style="text-align:right"/>
96 <tr>
97 <th i18n:translate="">Image</th>
98 <th i18n:translate="" style="width:30em">Printing format and type</th>
99 <th i18n:translate="">Quantity</th>
100 <th i18n:translate="">Unit price</th>
101 <th i18n:translate="">VAT (%)</th>
102 <th i18n:translate="">Amount<br/>(tax incl.)</th>
103 </tr>
104 <tr tal:repeat="i options/infos" tal:attributes="class python:repeat['i'].odd() and 'odd' or 'even'">
105 <td>
106 <img border="0" tal:condition="python:i.has_key('thumbUrl')"
107 tal:attributes="src i/thumbUrl;
108 alt i/title;
109 height i/thumbHeight;
110 width i/thumbWidth"/>
111 <em tal:condition="python:not i.has_key('thumbUrl')" i18n:translate="">image removed</em>
112 </td>
113 <td>
114 <div style="font-weight:bold" tal:content="i/title"></div>
115 <dl class="FieldHelp">
116 <dd tal:content="i/description"></dd>
117 </dl>
118 </td>
119 <td class="num" tal:content="python:i['quantity']">12</td>
120 <td class="num" tal:content="python:'%s €' % i['unit_price'].value"></td>
121 <td class="num" tal:content="python:i['unit_price'].vat"></td>
122 <td class="num" tal:content="python:'%s €' % i['total'].taxed" style="border-right:1px solid black"></td>
123 </tr>
124 <tbody class="total">
125 <tr>
126 <th colspan="2"></th>
127 <th class="num" tal:content="options/quantity"></th>
128 <th class="num">—</th>
129 <th class="num">—</th>
130 <th class="num" tal:content="python:'%s €' % options['pricesSum'].taxed"
131 style="border-right:1px solid black"></th>
132 </tr>
133 <tr>
134 <td class="num" colspan="5" i18n:translate="">Shipping</td>
135 <td class="num" tal:content="python:'%s €' % options['shippingFees'].taxed"></td>
136 </tr>
137 <tr>
138 <td class="num" colspan="5" i18n:translate="">VAT</td>
139 <td class="num" tal:content="python:'%s €' % options['total'].tax"></td>
140 </tr>
141 <tr>
142 <th class="num" colspan="5" i18n:translate="">Total amount to pay</th>
143 <td class="num" style="color:#f28c18"
144 tal:content="python:'%s €' % options['total'].taxed">montant total</td>
145 </tr>
146 </tbody>
147 <tfoot>
148 <tr tal:define="checkout options/checkout|nothing" tal:condition="checkout">
149 <td><br/></td>
150 <td colspan="5">
151 <div style="text-align:right">
152 <span i18n:translate="" tal:omit-tag="">Pay with PayPal:</span>
153 <a href="#" tal:attributes="href checkout/url"
154 title="Pay with PayPal" i18n:attributes="title">
155 <img tal:attributes="src string:$portal_url/paypal-button.png"
156 width="72" height="45" style="vertical-align:middle"
157 alt="Pay with PayPal" i18n:attributes="alt"/>
158 </a>
159 </div>
160 <p i18n:translate="">
161 Please check the preceding table and proceed to payment. By
162 clicking on the PayPal button, you will temporarily leave the
163 site: you will be redirected to the payment provider PayPal.
164 Please follow given instructions. The transaction will be final
165 as soon as you are back on the <em i18n:name="site_name"
166 tal:content="portal_object/Title">portal title</em> site. For
167 your information, there is no need to create a PayPal account,
168 even if you will be prompted: you can simply use your credit
169 card. If you already have a PayPal account, you can, at your
170 convenience, pay by PayPal transfer or by credit card.
171 </p>
172 </td>
173 </tr>
174 </tfoot>
175 </table>
176 <br/>
177 <h3 i18n:translate="">Order processing history</h3>
178 <table cellspacing="0" class="listing"
179 tal:define="history options/wfhistory"
180 tal:condition="history">
181 <tr>
182 <th i18n:translate="">Date</th>
183 <th i18n:translate="">Actor</th>
184 <th i18n:translate="">Action</th>
185 </tr>
186 <div tal:repeat="item python:history[::-1]" tal:omit-tag="">
187 <tr tal:define="oddrow repeat/item/odd" tal:attributes="class python:test(oddrow, 'even', 'odd')"
188 tal:condition="item/action">
189 <td tal:content="python:item['time'].strftime(locale_date_fmt)">time</td>
190 <td tal:condition="python:item['action'].startswith('auto_')">Cyberplus</td>
191 <td tal:condition="python:not item['action'].startswith('auto_')"
192 tal:content="python:mtool.getMemberFullNameById(item['actor'], nameBefore=0)">actor</td>
193 <td tal:content="item/action" i18n:translate=""></td>
194 </tr>
195 </div>
196 </table>
197 </div>
198 </body>
199 </html>