Code

- replaced the content() callback ickiness with Page Template macro usage
[roundup.git] / roundup / templates / classic / html / issue.index
1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/page">
3 <title metal:fill-slot="head_title">List of issues</title>
4 <td class="page-header-top" metal:fill-slot="body_title">
5  <h2>List of issues</h2>
6 </td>
7 <td class="content" metal:fill-slot="content">
9 <tal:block tal:condition="not:context/is_view_ok">
10 You are not allowed to view this page.
11 </tal:block>
13 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
14  <table class="list">
15   <tr>
16    <th tal:condition="request/show/priority">Priority</th>
17    <th tal:condition="request/show/id">ID</th>
18    <th tal:condition="request/show/activity">Activity</th>
19    <th tal:condition="request/show/topic">Topic</th>
20    <th tal:condition="request/show/title">Title</th>
21    <th tal:condition="request/show/status">Status</th>
22    <th tal:condition="request/show/creator">Created&nbsp;By</th>
23    <th tal:condition="request/show/assignedto">Assigned&nbsp;To</th>
24   </tr>
25  <tal:block tal:repeat="i batch">
26   <tr tal:condition="python:request.group[1] and
27                             batch.propchanged(request.group[1])">
28    <th tal:attributes="colspan python:len(request.columns)"
29        tal:content="python:i[request.group[1]]" class="group">
30    </th>
31   </tr>
32   <tr tal:attributes="class python:['normal', 'alt'][repeat['i'].even()]">
33    <td tal:condition="request/show/priority" tal:content="i/priority"></td>
34    <td tal:condition="request/show/id" tal:content="i/id"></td>
35    <td nowrap tal:condition="request/show/activity"
36        tal:content="i/activity/reldate"></td>
37    <td tal:condition="request/show/topic" tal:content="i/topic"></td>
38    <td tal:condition="request/show/title">
39     <a tal:attributes="href string:issue${i/id}"
40        tal:content="python:str(i.title) or '[no title]'">title</a>
41    </td>
42    <td tal:condition="request/show/status" tal:content="i/status"></td>
43    <td tal:condition="request/show/creator" tal:content="i/creator"></td>
44    <td tal:condition="request/show/assignedto" tal:content="i/assignedto"></td>
45   </tr>
46  </tal:block>
47  <tr>
48   <td style="padding: 0" tal:attributes="colspan python:len(request.columns)">
49    <table class="list">
50     <tr><th style="text-align: left; border: 0">
51      <a tal:define="prev batch/previous" tal:condition="prev"
52         tal:attributes="href python:request.indexargs_href(request.classname,
53         {':startwith':prev.first, ':pagesize':prev.size})">&lt;&lt; previous</a>
54      &nbsp;
55     </th>
56     <th style="text-align: right; border: 0">
57      <a tal:define="next batch/next" tal:condition="next"
58         tal:attributes="href python:request.indexargs_href(request.classname,
59          {':startwith':next.first, ':pagesize':next.size})">next &gt;&gt;</a>
60      &nbsp;
61     </th></tr>
62    </table>
63   </td>
64  </tr>
65 </table>
67 <form method="GET" tal:attributes="action request/classname">
68  <tal:block tal:replace="structure python:request.indexargs_form(sort=0, group=0)" />
69  <table class="form">
70   <tr tal:condition="batch">
71    <th>Sort on:</th>
72    <td>
73     <select name=":sort">
74      <option value="">- nothing -</option>
75      <option tal:repeat="col context/properties"
76              tal:attributes="value col/_name;
77                              selected python:col._name == request.sort[1]"
78              tal:content="col/_name">column</option>
79     </select>
80    </td>
81    <th>Descending:</th>
82    <td><input type="checkbox" name=":sortdir"
83               tal:attributes="checked python:request.sort[0] == '-'"> 
84    </td>
85   </tr>
86   <tr>
87    <th>Group on:</th>
88    <td>
89     <select name=":group">
90      <option value="">- nothing -</option>
91      <option tal:repeat="col context/properties"
92              tal:attributes="value col/_name;
93                              selected python:col._name == request.group[1]"
94              tal:content="col/_name">column</option>
95     </select>
96    </td>
97    <th>Descending:</th>
98    <td><input type="checkbox" name=":groupdir"
99               tal:attributes="checked python:request.group[0] == '-'"> 
100    </td>
101   </tr>
102   <tr><td colspan="4"><input type="submit" value="Redisplay"></td></tr>
103  </table>
104 </form>
106 </tal:block>
108 </td>
109 </tal:block>