|
14 | 14 | //--></script> |
15 | 15 | </tal:block> |
16 | 16 | </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" |
19 | 19 | tal:define="start python:int(request.form[':startwith'].value); |
20 | 20 | batch python:utils.Batch(context.list(), 500, start); |
21 | 21 | props python:request.form['properties'].value.split(',')"> |
22 | 22 |
|
23 | | - <div id="classhelp-controls" tal:condition="python:start==0"> |
| 23 | + <div id="classhelp-controls"> |
24 | 24 | <!--input type="button" name="btn_clear" |
25 | 25 | value="Clear" onClick="clearList()"/ --> |
26 | 26 | <input type="text" name="text_preview" size="24" class="preview" |
|
37 | 37 | <th tal:repeat="prop props" tal:content="prop"></th> |
38 | 38 | </tr> |
39 | 39 | <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> |
52 | 52 | </tr> |
53 | 53 | <tr> |
54 | 54 | <th> <b>x</b></th> |
|
59 | 59 | <tr class="navigation"> |
60 | 60 | <th> |
61 | 61 | <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}"><< previous</a> |
| 62 | + tal:attributes="href string:${request/classname}?:template=help&:startwith=${prev/first}&property=${request/form/property/value}&properties=${request/form/properties/value}"><< previous</a> |
63 | 63 | |
64 | 64 | </th> |
65 | 65 | <th tal:content="python: '%d...%d out of %d'%(batch.start, |
66 | 66 | batch.start+batch.length-1, batch.sequence_length)">current</th> |
67 | 67 | <th> |
68 | 68 | <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 >></a> |
| 69 | + tal:attributes="href string:${request/classname}?:template=help&:startwith=${next/first}&property=${request/form/property/value}&properties=${request/form/properties/value}">next >></a> |
70 | 70 | |
71 | 71 | </th> |
72 | 72 | </tr> |
|
0 commit comments