88088ce9217ba7fd7b02d9612cd7f4a638147d8b
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html>
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" onload="resetList();">
18 <form name="frm_help" tal:attributes="action request/base"
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(',')">
23 <div id="classhelp-controls">
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>
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 <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 </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}&property=${request/form/property/value}&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}&property=${request/form/property/value}&properties=${request/form/properties/value}">next >></a>
70
71 </th>
72 </tr>
73 </table>
75 </form>
76 </body>
77 </html>