Mercurial > p > roundup > code
annotate templates/classic/html/issue.index.html @ 3696:790363e96852
Sorting/grouping by multiple properties.
- Implement sorting/grouping by multiple properties for the web
interface. I'm now using @sort0/@sortdir0,@sort1/@sortdir1,... and
@group0/@groupdir0,... when generating URLs from a search template.
These are converted to a list internally. When saving URLs (e.g. when
storing queries) I'm using @sort=prop1,prop2,... and @group=... with
optional '-' prepended to individual props.
This means saved URLs are backward compatible with existing trackers
(and yes, this was a design goal).
I need the clumsy version with @sort0,@sort1 etc, because I'm
currently using several selectors and checkboxes (as the classic
template does, too). I don't think there is a way around that in HTML?
- Updated (hopefully all) documentation to reflect the new URL format
and the consequences in the web-interface.
- I've set the number of sort/group properties in the classic template
to two -- this can easily be reverted by changing n_sort to 1.
Richard, would you look over these changes? I've set a tag before and
(will set) after commit, so that it would be easy to merge out.
Don't be too scared about the size of the change, most is documentation,
the guts are in cgi/templating.py and small changes in the classic
template.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 30 Aug 2006 20:28:26 +0000 |
| parents | 1671d1e39b1a |
| children | 18def94e5150 |
| rev | line source |
|---|---|
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar--> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 <tal:block metal:use-macro="templates/page/macros/icing"> |
|
3686
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
3 <title metal:fill-slot="head_title" > |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
4 <span tal:omit-tag="true" i18n:translate="" >List of issues</span> |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
5 <span tal:condition="request/dispname" |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
6 tal:replace="python:' - %s '%request.dispname" |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
7 /> - <span tal:replace="config/TRACKER_NAME" /> |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
8 </title> |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
9 <span metal:fill-slot="body_title" tal:omit-tag="true"> |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
10 <span tal:omit-tag="true" i18n:translate="" >List of issues</span> |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
11 <span tal:condition="request/dispname" |
|
1671d1e39b1a
fix: "List of issues" string in page title is not translated...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3549
diff
changeset
|
12 tal:replace="python:' - %s' % request.dispname" /> |
|
3471
f16eca38e4e5
display the query name in the header (feature [SF#298535] / patch [SF#349387])
Richard Jones <richard@users.sourceforge.net>
parents:
3130
diff
changeset
|
13 </span> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
14 <td class="content" metal:fill-slot="content"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
15 |
|
3117
460eb0209a9e
Permissions improvements.
Richard Jones <richard@users.sourceforge.net>
parents:
2519
diff
changeset
|
16 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not |
|
460eb0209a9e
Permissions improvements.
Richard Jones <richard@users.sourceforge.net>
parents:
2519
diff
changeset
|
17 allowed to view this page.</p> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
18 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
19 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 <table class="list"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 <tr> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
22 <th tal:condition="request/show/priority" i18n:translate="">Priority</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
23 <th tal:condition="request/show/id" i18n:translate="">ID</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
24 <th tal:condition="request/show/creation" i18n:translate="">Creation</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
25 <th tal:condition="request/show/activity" i18n:translate="">Activity</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
26 <th tal:condition="request/show/actor" i18n:translate="">Actor</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
27 <th tal:condition="request/show/topic" i18n:translate="">Topic</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
28 <th tal:condition="request/show/title" i18n:translate="">Title</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
29 <th tal:condition="request/show/status" i18n:translate="">Status</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
30 <th tal:condition="request/show/creator" i18n:translate="">Creator</th> |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
31 <th tal:condition="request/show/assignedto" i18n:translate="">Assigned To</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
32 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
33 <tal:block tal:repeat="i batch"> |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
34 <tr tal:define="group python:[r[1] for r in request.group]" |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
35 tal:condition="python:group and batch.propchanged(*group)"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
36 <th tal:attributes="colspan python:len(request.columns)" class="group"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
37 <tal:block tal:repeat="g group"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
38 <tal:block tal:content="python:str(i[g]) or '(no %s set)'%g"/> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
39 </tal:block> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
40 </th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
41 </tr> |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
42 |
|
3126
a2889d22db4a
the cgi templating code now checks item-level
Richard Jones <richard@users.sourceforge.net>
parents:
3117
diff
changeset
|
43 <tr> |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
44 <td tal:condition="request/show/priority" |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
45 tal:content="python:i.priority.plain() or default"> </td> |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
46 <td tal:condition="request/show/id" tal:content="i/id"> </td> |
|
1825
fad32dafc174
Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1824
diff
changeset
|
47 <td class="date" tal:condition="request/show/creation" |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
48 tal:content="i/creation/reldate"> </td> |
|
1825
fad32dafc174
Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1824
diff
changeset
|
49 <td class="date" tal:condition="request/show/activity" |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
50 tal:content="i/activity/reldate"> </td> |
|
2077
3e0961d6d44d
Added the "actor" property.
Richard Jones <richard@users.sourceforge.net>
parents:
2075
diff
changeset
|
51 <td class="date" tal:condition="request/show/actor" |
|
3e0961d6d44d
Added the "actor" property.
Richard Jones <richard@users.sourceforge.net>
parents:
2075
diff
changeset
|
52 tal:content="python:i.actor.plain() or default"> </td> |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
53 <td tal:condition="request/show/topic" |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
54 tal:content="python:i.topic.plain() or default"> </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
55 <td tal:condition="request/show/title"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
56 <a tal:attributes="href string:issue${i/id}" |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
57 tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
58 </td> |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
59 <td tal:condition="request/show/status" |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
60 tal:content="python:i.status.plain() or default"> </td> |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
61 <td tal:condition="request/show/creator" |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
62 tal:content="python:i.creator.plain() or default"> </td> |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
63 <td tal:condition="request/show/assignedto" |
|
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
64 tal:content="python:i.assignedto.plain() or default"> </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
65 </tr> |
|
1625
126d4d0ac89b
under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents:
1591
diff
changeset
|
66 |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
67 </tal:block> |
|
1635
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
68 |
|
3126
a2889d22db4a
the cgi templating code now checks item-level
Richard Jones <richard@users.sourceforge.net>
parents:
3117
diff
changeset
|
69 <metal:index define-macro="batch-footer"> |
|
1635
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
70 <tr tal:condition="batch"> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
71 <th tal:attributes="colspan python:len(request.columns)"> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
72 <table width="100%"> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
73 <tr class="navigation"> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
74 <th> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
75 <a tal:define="prev batch/previous" tal:condition="prev" |
|
3130
7308c3c5a943
docs editing from Jean Jordaan
Richard Jones <richard@users.sourceforge.net>
parents:
3126
diff
changeset
|
76 tal:attributes="href python:request.indexargs_url(request.classname, |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
77 {'@startwith':prev.first, '@pagesize':prev.size})" |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
78 i18n:translate=""><< previous</a> |
|
1635
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
79 |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
80 </th> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
81 <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start" |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
82 />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end" |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
83 /> out of <span tal:replace="batch/sequence_length" i18n:name="total" |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
84 /></th> |
|
1635
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
85 <th> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
86 <a tal:define="next batch/next" tal:condition="next" |
|
3130
7308c3c5a943
docs editing from Jean Jordaan
Richard Jones <richard@users.sourceforge.net>
parents:
3126
diff
changeset
|
87 tal:attributes="href python:request.indexargs_url(request.classname, |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
88 {'@startwith':next.first, '@pagesize':next.size})" |
|
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
89 i18n:translate="">next >></a> |
|
1635
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
90 |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
91 </th> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
92 </tr> |
|
b0ffb474716e
nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents:
1625
diff
changeset
|
93 </table> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
94 </th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
95 </tr> |
|
3126
a2889d22db4a
the cgi templating code now checks item-level
Richard Jones <richard@users.sourceforge.net>
parents:
3117
diff
changeset
|
96 </metal:index> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
97 </table> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
98 |
|
2112
b86f0627b07c
added CSV download of index / search results
Richard Jones <richard@users.sourceforge.net>
parents:
2077
diff
changeset
|
99 <a tal:attributes="href python:request.indexargs_url('issue', |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
100 {'@action':'export_csv'})" i18n:translate="">Download as CSV</a> |
|
2112
b86f0627b07c
added CSV download of index / search results
Richard Jones <richard@users.sourceforge.net>
parents:
2077
diff
changeset
|
101 |
|
2242
daf5bd3666bd
hide bottom form too
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
102 <form method="GET" class="index-controls" |
|
daf5bd3666bd
hide bottom form too
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
103 tal:attributes="action request/classname"> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
104 |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
105 <table class="form" tal:define="n_sort python:2"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
106 <tal:block tal:repeat="n python:range(n_sort)" tal:condition="batch"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
107 <tr tal:define="key python:len(request.sort)>n and request.sort[n]"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
108 <th> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
109 <tal:block tal:condition="not:n" i18n:translate="">Sort on:</tal:block> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
110 </th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
111 <td> |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
112 <select tal:attributes="name python:'@sort%d'%n"> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
113 <option value="" i18n:translate="">- nothing -</option> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
114 <option tal:repeat="col context/properties" |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
115 tal:attributes="value col/_name; |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
116 selected python:key and col._name == key[1]" |
|
2519
84a969033ed9
translate column names in "sort by" and "group by" option lists
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2461
diff
changeset
|
117 tal:content="col/_name" |
|
84a969033ed9
translate column names in "sort by" and "group by" option lists
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2461
diff
changeset
|
118 i18n:translate="">column</option> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
119 </select> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
120 </td> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
121 <th i18n:translate="">Descending:</th> |
|
1911
f5c804379c85
fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents:
1825
diff
changeset
|
122 <td><input type="checkbox" name="@sortdir" |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
123 tal:attributes="checked python:key and key[0] == '-'"> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
124 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
125 </tr> |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
126 </tal:block> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
127 <tal:block tal:repeat="n python:range(n_sort)" tal:condition="batch"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
128 <tr tal:define="key python:len(request.group)>n and request.group[n]"> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
129 <th> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
130 <tal:block tal:condition="not:n" i18n:translate="">Group on:</tal:block> |
|
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
131 </th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
132 <td> |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
133 <select tal:attributes="name python:'@group%d'%n"> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
134 <option value="" i18n:translate="">- nothing -</option> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
135 <option tal:repeat="col context/properties" |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
136 tal:attributes="value col/_name; |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
137 selected python:key and col._name == key[1]" |
|
2519
84a969033ed9
translate column names in "sort by" and "group by" option lists
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2461
diff
changeset
|
138 tal:content="col/_name" |
|
84a969033ed9
translate column names in "sort by" and "group by" option lists
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2461
diff
changeset
|
139 i18n:translate="">column</option> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
140 </select> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
141 </td> |
|
2393
c2908812624a
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2242
diff
changeset
|
142 <th i18n:translate="">Descending:</th> |
|
1911
f5c804379c85
fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents:
1825
diff
changeset
|
143 <td><input type="checkbox" name="@groupdir" |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
144 tal:attributes="checked python:key and key[0] == '-'"> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
145 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
146 </tr> |
|
3696
790363e96852
Sorting/grouping by multiple properties.
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents:
3686
diff
changeset
|
147 </tal:block> |
|
1824
24819ee5dfbc
First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1635
diff
changeset
|
148 <tr><td colspan="4"> |
|
2461
48143bde35df
translate 'Redisplay' button caption
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2393
diff
changeset
|
149 <input type="submit" value="Redisplay" i18n:attributes="value"> |
|
1824
24819ee5dfbc
First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1635
diff
changeset
|
150 <tal:block tal:replace="structure |
|
24819ee5dfbc
First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1635
diff
changeset
|
151 python:request.indexargs_form(sort=0, group=0)" /> |
|
24819ee5dfbc
First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1635
diff
changeset
|
152 </td></tr> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
153 </table> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
154 </form> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
155 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
156 </tal:block> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
157 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
158 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
159 </tal:block> |
