|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
1 | 2 | <html> |
2 | | -<head> |
3 | | -<meta http-equiv="Content-Type" content="text/html; charset=utf-8;"> |
4 | | -<link rel="stylesheet" type="text/css" href="_file/style.css"> |
5 | | -</head> |
6 | | -<body class="body" marginwidth="0" marginheight="0"> |
| 3 | + <head> |
| 4 | + <link rel="stylesheet" type="text/css" href="_file/style.css" /> |
| 5 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8;" /> |
| 6 | + <tal:block tal:condition="python:request.form.has_key('property')"> |
| 7 | + <title tal:content="string:${request/form/property/value} help">Property</title> |
| 8 | + <script language="Javascript" type="text/javascript" |
| 9 | + tal:content="structure string: |
| 10 | + // this is the name of the field in the original form that we're working on |
| 11 | + field = '${request/form/property/value}';" > |
| 12 | + </script> |
| 13 | + <script src="_file/help_controls.js" type="text/javascript"><!-- |
| 14 | + //--></script> |
| 15 | + </tal:block> |
| 16 | + </head> |
| 17 | + <body class="body" marginwidth="0" marginheight="0" onload="resetList();"> |
| 18 | + <form name="frm_help" action="" |
| 19 | + tal:define="start python:int(request.form[':startwith'].value); |
| 20 | + batch python:utils.Batch(context.list(), 500, start); |
| 21 | + props python:request.form['properties'].value.split(',')"> |
| 22 | + |
| 23 | + <div id="classhelp-controls" tal:condition="python:start==0"> |
| 24 | + <!--input type="button" name="btn_clear" |
| 25 | + value="Clear" onClick="clearList()"/ --> |
| 26 | + <input type="text" name="text_preview" size="24" class="preview" |
| 27 | + onchange="reviseList(this.value);"/> |
| 28 | + <input type="button" name="btn_reset" |
| 29 | + value=" Cancel " onclick="resetList(); window.close();"/> |
| 30 | + <input type="button" name="btn_apply" class="apply" |
| 31 | + value=" Apply " onclick="updateList(); window.close();"/> |
| 32 | + </div> |
7 | 33 |
|
8 | | -<table class="classhelp" |
9 | | - tal:define="props python:request.form['properties'].value.split(',')"> |
10 | | -<tr><th tal:repeat="prop props" tal:content="prop"></th></tr> |
11 | | -<tr tal:repeat="item context/list"> |
12 | | - <td tal:repeat="prop props" tal:content="python:item[prop]"></td> |
13 | | -</tr> |
14 | | -</table> |
| 34 | + <table class="classhelp"> |
| 35 | + <tr> |
| 36 | + <th> <b>x</b></th> |
| 37 | + <th tal:repeat="prop props" tal:content="prop"></th> |
| 38 | + </tr> |
| 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> |
| 52 | + </tr> |
| 53 | + <tr> |
| 54 | + <th> <b>x</b></th> |
| 55 | + <th tal:repeat="prop props" tal:content="prop"></th> |
| 56 | + </tr> |
| 57 | + </table> |
| 58 | + <table width="100%"> |
| 59 | + <tr class="navigation"> |
| 60 | + <th> |
| 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> |
| 63 | + |
| 64 | + </th> |
| 65 | + <th tal:content="python: '%d...%d out of %d'%(batch.start, |
| 66 | + batch.start+batch.length-1, batch.sequence_length)">current</th> |
| 67 | + <th> |
| 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> |
| 70 | + |
| 71 | + </th> |
| 72 | + </tr> |
| 73 | + </table> |
15 | 74 |
|
16 | | -</body> |
| 75 | + </form> |
| 76 | + </body> |
| 77 | +</html> |
| 78 | +<!-- SHA: 97d46e2f10096a13afc6e5c48a3e6175ada9738f --> |
0 commit comments