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