1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
2 <tal:block tal:define="batch request/batch">
3 <table class="list">
4 <tr>
5 <th tal:condition="request/show/priority">Priority</th>
6 <th tal:condition="request/show/id">ID</th>
7 <th tal:condition="request/show/activity">Activity</th>
8 <th tal:condition="request/show/title">Title</th>
9 <th tal:condition="request/show/status">Status</th>
10 <th tal:condition="request/show/creator">Created By</th>
11 <th tal:condition="request/show/assignedto">Assigned To</th>
12 </tr>
13 <tal:block tal:repeat="i batch">
14 <tr tal:condition="python:request.group[1] and
15 batch.propchanged(request.group[1])">
16 <th tal:attributes="colspan python:len(request.columns)"
17 tal:content="python:i[request.group[1]]" class="group">
18 </th>
19 </tr>
20 <tr tal:attributes="class python:['normal', 'alt'][repeat['i'].even()]">
21 <td tal:condition="request/show/priority" tal:content="i/priority"></td>
22 <td tal:condition="request/show/id" tal:content="i/id"></td>
23 <td tal:condition="request/show/activity"
24 tal:content="i/activity/reldate"></td>
25 <td tal:condition="request/show/title">
26 <a tal:attributes="href string:issue${i/id}"
27 tal:content="python:i.title.value or '[no title]'">title</a>
28 </td>
29 <td tal:condition="request/show/status" tal:content="i/status"></td>
30 <td tal:condition="request/show/creator" tal:content="i/creator"></td>
31 <td tal:condition="request/show/assignedto" tal:content="i/assignedto"></td>
32 </tr>
33 </tal:block>
34 <tr>
35 <td style="padding: 0" tal:attributes="colspan python:len(request.columns)">
36 <table class="list">
37 <tr><th style="text-align: left; border: 0">
38 <a tal:define="prev batch/previous" tal:condition="prev"
39 tal:attributes="href python:request.indexargs_href(request.classname,
40 {':startwith':prev.start, ':pagesize':prev.size})"><< previous</a>
41
42 </th>
43 <th style="text-align: right; border: 0">
44 <a tal:define="next batch/next" tal:condition="next"
45 tal:attributes="href python:request.indexargs_href(request.classname,
46 {':startwith':next.start, ':pagesize':next.size})">next >></a>
47
48 </th></tr>
49 </table>
50 </td>
51 </tr>
52 </table>
54 <form method="GET" tal:attributes="action request/classname">
55 <tal:block tal:replace="structure python:request.indexargs_form(sort=0, group=0)" />
56 <table class="form">
57 <tr tal:condition="batch">
58 <th>Sort on:</th>
59 <td>
60 <select name=":sort">
61 <option value="">- nothing -</option>
62 <option tal:repeat="col request/columns"
63 tal:attributes="value col; selected python:col == request.sort[1]"
64 tal:content="col">column</option>
65 </select>
66 </td>
67 <th>Descending:</th>
68 <td><input type="checkbox" name=":sortdir"
69 tal:attributes="checked python:request.sort[0] == '-'">
70 </td>
71 </tr>
72 <tr>
73 <th>Group on:</th>
74 <td>
75 <select name=":group">
76 <option value="">- nothing -</option>
77 <option tal:repeat="col request/columns"
78 tal:attributes="value col; selected python:col == request.group[1]"
79 tal:content="col">column</option>
80 </select>
81 </td>
82 <th>Descending:</th>
83 <td><input type="checkbox" name=":groupdir"
84 tal:attributes="checked python:request.group[0] == '-'">
85 </td>
86 </tr>
87 <tr><td colspan="4"><input type="submit" value="Redisplay"></td></tr>
88 </table>
89 </form>
91 </tal:block>