Skip to content

Commit 84d3478

Browse files
author
Richard Jones
committed
paging in classhelp popup was broken
1 parent 5197d37 commit 84d3478

File tree

3 files changed

+39
-34
lines changed

3 files changed

+39
-34
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2004-??-?? 0.6.9
5+
Fixed:
6+
- paging in classhelp popup was broken
7+
8+
49
2004-04-01 0.6.8
510
Fixed:
611
- existing trackers (ie. live ones) may be used as templates for new

templates/classic/html/_generic.help.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
//--></script>
1515
</tal:block>
1616
</head>
17-
<body class="body" marginwidth="0" marginheight="0" onload="resetList();">
18-
<form name="frm_help" action=""
17+
<body class="body" onload="resetList();">
18+
<form name="frm_help" tal:attributes="action request/base"
1919
tal:define="start python:int(request.form[':startwith'].value);
2020
batch python:utils.Batch(context.list(), 500, start);
2121
props python:request.form['properties'].value.split(',')">
2222

23-
<div id="classhelp-controls" tal:condition="python:start==0">
23+
<div id="classhelp-controls">
2424
<!--input type="button" name="btn_clear"
2525
value="Clear" onClick="clearList()"/ -->
2626
<input type="text" name="text_preview" size="24" class="preview"
@@ -37,18 +37,18 @@
3737
<th tal:repeat="prop props" tal:content="prop"></th>
3838
</tr>
3939
<tr tal:repeat="item batch">
40-
<td>
41-
<input type="checkbox" name="check"
42-
onclick="updatePreview();"
43-
tal:condition="python:start==0"
44-
tal:define="attr python:item[props[0]]"
45-
tal:attributes="value attr; id attr" />
46-
</td>
47-
<td tal:repeat="prop props">
48-
<label class="classhelp-label"
49-
tal:attributes="for python:item[props[0]]"
50-
tal:content="structure python:item[prop]"></label>
51-
</td>
40+
<tal:block tal:define="attr python:item[props[0]]">
41+
<td>
42+
<input type="checkbox" name="check"
43+
onclick="updatePreview();"
44+
tal:attributes="value attr; id string:id_$attr" />
45+
</td>
46+
<td tal:repeat="prop props">
47+
<label class="classhelp-label"
48+
tal:attributes="for string:id_$attr"
49+
tal:content="structure python:item[prop]"></label>
50+
</td>
51+
</tal:block>
5252
</tr>
5353
<tr>
5454
<th>&nbsp;<b>x</b></th>
@@ -59,14 +59,14 @@
5959
<tr class="navigation">
6060
<th>
6161
<a tal:define="prev batch/previous" tal:condition="prev"
62-
tal:attributes="href string:${request/classname}?:template=help&:startwith=${prev/first}&properties=${request/form/properties/value}">&lt;&lt; previous</a>
62+
tal:attributes="href string:${request/classname}?:template=help&:startwith=${prev/first}&property=${request/form/property/value}&properties=${request/form/properties/value}">&lt;&lt; previous</a>
6363
&nbsp;
6464
</th>
6565
<th tal:content="python: '%d...%d out of %d'%(batch.start,
6666
batch.start+batch.length-1, batch.sequence_length)">current</th>
6767
<th>
6868
<a tal:define="next batch/next" tal:condition="next"
69-
tal:attributes="href string:${request/classname}?:template=help&:startwith=${next/first}&properties=${request/form/properties/value}">next &gt;&gt;</a>
69+
tal:attributes="href string:${request/classname}?:template=help&:startwith=${next/first}&property=${request/form/property/value}&properties=${request/form/properties/value}">next &gt;&gt;</a>
7070
&nbsp;
7171
</th>
7272
</tr>

templates/minimal/html/_generic.help.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
//--></script>
1515
</tal:block>
1616
</head>
17-
<body class="body" marginwidth="0" marginheight="0" onload="resetList();">
18-
<form name="frm_help" action=""
17+
<body class="body" onload="resetList();">
18+
<form name="frm_help" tal:attributes="action request/base"
1919
tal:define="start python:int(request.form[':startwith'].value);
2020
batch python:utils.Batch(context.list(), 500, start);
2121
props python:request.form['properties'].value.split(',')">
2222

23-
<div id="classhelp-controls" tal:condition="python:start==0">
23+
<div id="classhelp-controls">
2424
<!--input type="button" name="btn_clear"
2525
value="Clear" onClick="clearList()"/ -->
2626
<input type="text" name="text_preview" size="24" class="preview"
@@ -37,18 +37,18 @@
3737
<th tal:repeat="prop props" tal:content="prop"></th>
3838
</tr>
3939
<tr tal:repeat="item batch">
40-
<td>
41-
<input type="checkbox" name="check"
42-
onclick="updatePreview();"
43-
tal:condition="python:start==0"
44-
tal:define="attr python:item[props[0]]"
45-
tal:attributes="value attr; id attr" />
46-
</td>
47-
<td tal:repeat="prop props">
48-
<label class="classhelp-label"
49-
tal:attributes="for python:item[props[0]]"
50-
tal:content="structure python:item[prop]"></label>
51-
</td>
40+
<tal:block tal:define="attr python:item[props[0]]">
41+
<td>
42+
<input type="checkbox" name="check"
43+
onclick="updatePreview();"
44+
tal:attributes="value attr; id string:id_$attr" />
45+
</td>
46+
<td tal:repeat="prop props">
47+
<label class="classhelp-label"
48+
tal:attributes="for string:id_$attr"
49+
tal:content="structure python:item[prop]"></label>
50+
</td>
51+
</tal:block>
5252
</tr>
5353
<tr>
5454
<th>&nbsp;<b>x</b></th>
@@ -59,14 +59,14 @@
5959
<tr class="navigation">
6060
<th>
6161
<a tal:define="prev batch/previous" tal:condition="prev"
62-
tal:attributes="href string:${request/classname}?:template=help&:startwith=${prev/first}&properties=${request/form/properties/value}">&lt;&lt; previous</a>
62+
tal:attributes="href string:${request/classname}?:template=help&:startwith=${prev/first}&property=${request/form/property/value}&properties=${request/form/properties/value}">&lt;&lt; previous</a>
6363
&nbsp;
6464
</th>
6565
<th tal:content="python: '%d...%d out of %d'%(batch.start,
6666
batch.start+batch.length-1, batch.sequence_length)">current</th>
6767
<th>
6868
<a tal:define="next batch/next" tal:condition="next"
69-
tal:attributes="href string:${request/classname}?:template=help&:startwith=${next/first}&properties=${request/form/properties/value}">next &gt;&gt;</a>
69+
tal:attributes="href string:${request/classname}?:template=help&:startwith=${next/first}&property=${request/form/property/value}&properties=${request/form/properties/value}">next &gt;&gt;</a>
7070
&nbsp;
7171
</th>
7272
</tr>

0 commit comments

Comments
 (0)