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