luxia--
[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>
133 <td class="num" colspan="5" i18n:translate="">Shipping</td>
134 <td class="num" tal:content="python:'%s €' % options['shippingFees'].taxed"></td>
135 </tr>
136 <tr>
137 <td class="num" colspan="5" i18n:translate="">VAT</td>
138 <td class="num" tal:content="python:'%s €' % options['total'].tax"></td>
139 </tr>
140 <tr>
141 <th class="num" colspan="5" i18n:translate="">Total amount to pay</th>
142 <td class="num" style="color:#f28c18"
143 tal:content="python:'%s €' % options['total'].taxed">montant total</td>
144 </tr>
145 </tbody>
146 <tfoot>
147 <tr tal:define="checkout options/checkout|nothing" tal:condition="checkout">
148 <td><br/></td>
149 <td colspan="5">
150 <div style="text-align:right">
151 <span i18n:translate="" tal:omit-tag="">Pay with PayPal:</span>
152 <a href="#" tal:attributes="href checkout/url"
153 title="Pay with PayPal" i18n:attributes="title">
154 <img tal:attributes="src string:$portal_url/paypal-button.png"
155 width="72" height="45" style="vertical-align:middle"
156 alt="Pay with PayPal" i18n:attributes="alt"/>
157 </a>
158 </div>
159 <p i18n:translate="">
160 Please check the preceding table and proceed to payment. By
161 clicking on the PayPal button, you will temporarily leave the
162 site: you will be redirected to the payment provider PayPal.
163 Please follow given instructions. The transaction will be final
164 as soon as you are back on the <em i18n:name="site_name"
165 tal:content="portal_object/Title">portal title</em> site. For
166 your information, there is no need to create a PayPal account,
167 even if you will be prompted: you can simply use your credit
168 card. If you already have a PayPal account, you can, at your
169 convenience, pay by PayPal transfer or by credit card.
170 </p>
171 </td>
172 </tr>
173 </tfoot>
174 </table>
175 <br/>
176 <h3 i18n:translate="">Order processing history</h3>
177 <table cellspacing="0" class="listing"
178 tal:define="history options/wfhistory"
179 tal:condition="history">
180 <tr>
181 <th i18n:translate="">Date</th>
182 <th i18n:translate="">Actor</th>
183 <th i18n:translate="">Action</th>
184 </tr>
185 <div tal:repeat="item python:history[::-1]" tal:omit-tag="">
186 <tr tal:define="oddrow repeat/item/odd" tal:attributes="class python:test(oddrow, 'even', 'odd')"
187 tal:condition="item/action">
188 <td tal:content="python:item['time'].strftime(locale_date_fmt)">time</td>
189 <td tal:condition="python:not item['action'].startswith('auto_')"
190 tal:content="python:mtool.getMemberFullNameById(item['actor'], nameBefore=0)">actor</td>
191 <td tal:content="item/action" i18n:translate=""></td>
192 </tr>
193 </div>
194 </table>
195 </div>
196 </body>
197 </html>