bugfix : pour obtenir l'url d'un brain, c'est getURL et non absolute_url
[Portfolio.git] / skins / shipping_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>Shipping template</title>
7 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
8
9 </head>
10 <body i18n:domain="portfolio">
11 <div metal:fill-slot="main_no_tabs" tal:omit-tag=""
12 tal:define="step_shipping python:True">
13 <div metal:use-macro="here/sell_macros/macros/sell_steps"></div>
14 <h2 i18n:translate="">Please set shipping informations</h2>
15 <form method="post" tal:attributes="action string:$portal_url/my_cart">
16 <table class="TwoColumnForm">
17 <tr>
18 <th colspan="2">
19 <input type="submit" name="set_shipping" value="Validate &gt;&gt;" i18n:attributes="value" />
20 </th>
21 </tr>
22 <tr>
23 <th i18n:translate="">Fullname</th>
24 <td>
25 <input name="shipping_fullname" tal:attributes="value options/shipping_fullname"/>
26 </td>
27 </tr>
28 <tr>
29 <th i18n:translate="">Address</th>
30 <td>
31 <textarea name="shipping_address" tal:content="options/shipping_address"
32 cols="30" rows="1" style="width:auto"></textarea>
33 </td>
34 </tr>
35 <tr>
36 <th i18n:translate="">City</th>
37 <td>
38 <input type="text" name="shipping_city" size="35" tal:attributes="value options/shipping_city"/>
39 </td>
40 </tr>
41 <tr>
42 <th i18n:translate="">Zip code</th>
43 <td>
44 <input type="text" name="shipping_zipcode" size="5" tal:attributes="value options/shipping_zipcode"/>
45 </td>
46 </tr>
47 <tr>
48 <th i18n:translate="">Country</th>
49 <td>
50 <select name="shipping_country"
51 tal:define="countries python:modules['Products.iso_3166_1'].fr.countries"
52 i18n:domain="iso_3166_1">
53 <option tal:repeat="c countries" tal:attributes="value python:c[0]; selected python:c[0]==options['shipping_country']" tal:content="python:c[0]" i18n:translate=""></option>
54 </select>
55 </td>
56 </tr>
57 <tr>
58 <th colspan="2">
59 <br/>
60 <input type="submit" name="set_shipping" value="Validate &gt;&gt;" i18n:attributes="value" />
61 </th>
62 </tr>
63 </table>
64 </form>
65 </div>
66 </body>
67 </html>