Bugfix : reduce sur une liste d'un élément provoque des effets de bords.
[photoprint.git] / skins / order_list_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>Order listing</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" tal:omit-tag=""
12 tal:define="folders options/folders;
13 orders options/orders;
14 columns options/columns">
15 <table class="listing" cellspacing="0" tal:condition="folders">
16 <tr>
17 <th i18n:translate="">Name</th>
18 </tr>
19 <tr tal:repeat="folder folders" tal:attributes="class python:repeat['folder'].odd() and 'odd' or 'even'">
20 <td>
21 <a tal:content="folder/title_or_id" tal:attributes="href folder/absolute_url"></a>
22 </td>
23 </tr>
24 </table>
25 <div tal:condition="orders" tal:omit-tag="">
26 <div tal:define="batch orders" tal:omit-tag="">
27 <span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
28 </div>
29 <table class="listing" cellspacing="0">
30 <thead id="FolderListingHeader">
31 <tr>
32 <th tal:attributes="width column_info/width; colspan column_info/colspan" tal:repeat="column_info columns" nowrap="nowrap" >
33 <a href="." tal:attributes="href column_info/url" tal:content="column_info/title" i18n:translate="">Type</a>
34 <span tal:repeat="img column_info/images" tal:omit-tag="">
35 <a tal:omit-tag="python:not img.has_key('href')"
36 tal:attributes="href img/href|nothing ; title img/alt" i18n:attributes="title"
37 ><img tal:attributes="src img/src ; alt img/alt ; id img/id|nothing" border="0" i18n:attributes="alt" /></a>
38 </span>
39 </th>
40 </tr>
41 </thead>
42 <tr tal:repeat="order orders" tal:attributes="class python:repeat['order'].odd() and 'odd' or 'even'">
43 <td tal:content="python:order['created'].strftime(locale_date_fmt)">date</td>
44 <td tal:content="order/customer">customer</td>
45 <td>
46 <a tal:content="order/reference" tal:attributes="href order/url">reference</a>
47 </td>
48 <td tal:content="order/quantity">quantity</td>
49 <td tal:content="order/price/taxed">price</td>
50 <td tal:content="order/state" i18n:translate="">state</td>
51 </tr>
52 </table>
53 </div>
54 </div>
55 </body>
56 </html>