|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | 2 | <html> |
3 | 3 | <head> |
4 | | - <link rel="stylesheet" type="text/css" href="_file/style.css" /> |
| 4 | + <link rel="stylesheet" type="text/css" href="@@file/style.css" /> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8;" /> |
6 | 6 | <tal:block tal:condition="python:request.form.has_key('property')"> |
7 | 7 | <title tal:content="string:${request/form/property/value} help">Property</title> |
|
10 | 10 | // this is the name of the field in the original form that we're working on |
11 | 11 | field = '${request/form/property/value}';" > |
12 | 12 | </script> |
13 | | - <script src="_file/help_controls.js" type="text/javascript"><!-- |
| 13 | + <script src="@@file/help_controls.js" type="text/javascript"><!-- |
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="batch request/batch; |
20 | 20 | props python:request.form['properties'].value.split(',')"> |
21 | 21 |
|
22 | | - <div id="classhelp-controls" tal:condition="python:start==0"> |
| 22 | + <div id="classhelp-controls"> |
23 | 23 | <!--input type="button" name="btn_clear" |
24 | 24 | value="Clear" onClick="clearList()"/ --> |
25 | 25 | <input type="text" name="text_preview" size="24" class="preview" |
|
29 | 29 | <input type="button" name="btn_apply" class="apply" |
30 | 30 | value=" Apply " onclick="updateList(); window.close();"/> |
31 | 31 | </div> |
32 | | - |
33 | | - <table class="classhelp"> |
34 | | - <tr> |
35 | | - <th> <b>x</b></th> |
36 | | - <th tal:repeat="prop props" tal:content="prop"></th> |
37 | | - </tr> |
38 | | - <tr tal:repeat="item batch"> |
39 | | - <td> |
40 | | - <input type="checkbox" name="check" |
41 | | - onclick="updatePreview();" |
42 | | - tal:condition="python:start==0" |
43 | | - tal:define="attr python:item[props[0]]" |
44 | | - tal:attributes="value attr; id attr" /> |
45 | | - </td> |
46 | | - <td tal:repeat="prop props"> |
47 | | - <label class="classhelp-label" |
48 | | - tal:attributes="for python:item[props[0]]" |
49 | | - tal:content="structure python:item[prop]"></label> |
50 | | - </td> |
51 | | - </tr> |
52 | | - <tr> |
53 | | - <th> <b>x</b></th> |
54 | | - <th tal:repeat="prop props" tal:content="prop"></th> |
55 | | - </tr> |
56 | | - </table> |
57 | 32 | <table width="100%"> |
58 | 33 | <tr class="navigation"> |
59 | 34 | <th> |
60 | 35 | <a tal:define="prev batch/previous" tal:condition="prev" |
61 | | - tal:attributes="href string:${request/classname}?@template=help&@startwith=${prev/first}&properties=${request/form/properties/value}"><< previous</a> |
| 36 | + tal:attributes="href python:request.indexargs_href(request.classname, |
| 37 | + {'@template':'help', 'property': request.form['property'].value, |
| 38 | + 'properties': request.form['properties'].value, |
| 39 | + '@startwith':prev.first, '@pagesize':prev.size})"><< previous</a> |
62 | 40 | |
63 | 41 | </th> |
64 | 42 | <th tal:content="python: '%d...%d out of %d'%(batch.start, |
65 | 43 | batch.start+batch.length-1, batch.sequence_length)">current</th> |
66 | 44 | <th> |
67 | 45 | <a tal:define="next batch/next" tal:condition="next" |
68 | | - tal:attributes="href string:${request/classname}?@template=help&@startwith=${next/first}&properties=${request/form/properties/value}">next >></a> |
| 46 | + tal:attributes="href python:request.indexargs_href(request.classname, |
| 47 | + {'@template':'help', 'property': request.form['property'].value, |
| 48 | + 'properties': request.form['properties'].value, |
| 49 | + '@startwith':next.first, '@pagesize':next.size})">next >></a> |
69 | 50 | |
70 | 51 | </th> |
71 | 52 | </tr> |
72 | 53 | </table> |
73 | 54 |
|
| 55 | + <table class="classhelp"> |
| 56 | + <tr> |
| 57 | + <th> <b>x</b></th> |
| 58 | + <th tal:repeat="prop props" tal:content="prop"></th> |
| 59 | + </tr> |
| 60 | + <tr tal:repeat="item batch"> |
| 61 | + <tal:block tal:define="attr python:item[props[0]]"> |
| 62 | + <td> |
| 63 | + <input type="checkbox" name="check" |
| 64 | + onclick="updatePreview();" |
| 65 | + tal:attributes="value attr; id string:id_$attr" /> |
| 66 | + </td> |
| 67 | + <td tal:repeat="prop props"> |
| 68 | + <label class="classhelp-label" |
| 69 | + tal:attributes="for string:id_$attr" |
| 70 | + tal:content="structure python:item[prop]"></label> |
| 71 | + </td> |
| 72 | + </tal:block> |
| 73 | + </tr> |
| 74 | + <tr> |
| 75 | + <th> <b>x</b></th> |
| 76 | + <th tal:repeat="prop props" tal:content="prop"></th> |
| 77 | + </tr> |
| 78 | + </table> |
| 79 | + |
74 | 80 | </form> |
75 | 81 | </body> |
76 | 82 | </html> |
0 commit comments