Résolu : problème de localisation avec zope-2.12.
[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="paymentRequest options/paymentRequest|nothing" tal:condition="paymentRequest">
149 <td><br/></td>
150 <td colspan="5">
151 <div style="text-align:right">
152 <form tal:attributes="action paymentRequest/URL" method="post" style="text-align:top">
153 <input type="hidden" name="DATA" tal:attributes="value paymentRequest/DATA"/>
154 <span i18n:translate="" style="font-size:110%;font-weight:bold;vertical-align:middle">Use one of these button to pay:</span>
155 <span tal:repeat="mean paymentRequest/PAYMENT_MEANS">
156 <input type="image" style="vertical-align:middle"
157 tal:attributes="src python:'%s/cyberplus_logo/%s.gif' % (portal_url, mean);
158 name mean"/>    
159 </span>
160 <input type="hidden" name="noAjax" value="1"/>
161 </form>
162 </div>
163 <div>
164 <img tal:attributes="src string:$portal_url/cyberplus_logo/banque_populaire_logo.png"
165 style="float:left;margin-right:1em"/>
166 <dl class="FieldHelp">
167 <dd i18n:translate="">
168 Please click over the button representing your credit card.
169 You will leave temporarily this web site to pay your order
170 on our bank partner payment site. After your payment, you
171 will be able to come back to the store and get an invoice of
172 your transaction.
173 </dd>
174 <dd i18n:translate="">
175 This secured payment is provided by the Cyberplus™ payment
176 service of "Banque Populaire".
177 </dd>
178 </dl>
179 </div>
180 </td>
181 </tr>
182 </tfoot>
183 </table>
184 <br/>
185 <h3 i18n:translate="">Order processing history</h3>
186 <table cellspacing="0" class="listing"
187 tal:define="history options/wfhistory"
188 tal:condition="history">
189 <tr>
190 <th i18n:translate="">Date</th>
191 <th i18n:translate="">Actor</th>
192 <th i18n:translate="">Action</th>
193 </tr>
194 <div tal:repeat="item python:history[::-1]" tal:omit-tag="">
195 <tr tal:define="oddrow repeat/item/odd" tal:attributes="class python:test(oddrow, 'even', 'odd')"
196 tal:condition="item/action">
197 <td tal:content="python:item['time'].strftime(locale_date_fmt)">time</td>
198 <td tal:condition="python:item['action'].startswith('auto_')">Cyberplus</td>
199 <td tal:condition="python:not item['action'].startswith('auto_')"
200 tal:content="python:mtool.getMemberFullNameById(item['actor'], nameBefore=0)">actor</td>
201 <td tal:content="item/action" i18n:translate=""></td>
202 </tr>
203 </div>
204 </table>
205 </div>
206 </body>
207 </html>