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