|
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 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 | 8 | <title i18n:translate=""><span i18n:name="property" |
9 | | - tal:replace="property" /> help</title> |
| 9 | + tal:replace="property" /> help - <span i18n:name="tracker" |
| 10 | + tal:replace="config/TRACKER_NAME" /></title> |
10 | 11 | <script language="Javascript" type="text/javascript" |
11 | 12 | tal:content="structure string: |
12 | 13 | // this is the name of the field in the original form that we're working on |
|
16 | 17 | //--></script> |
17 | 18 | </tal:block> |
18 | 19 | </head> |
19 | | - <body class="body" marginwidth="0" marginheight="0" onload="resetList();"> |
20 | | - <form name="frm_help" action="" |
| 20 | + <body class="body" onload="resetList();"> |
| 21 | + <form name="frm_help" tal:attributes="action request/base" |
21 | 22 | tal:define="start python:int(request.form['@startwith'].value); |
22 | 23 | batch python:utils.Batch(context.list(), 500, start); |
23 | 24 | props python:request.form['properties'].value.split(',')"> |
24 | 25 |
|
25 | | - <div id="classhelp-controls" tal:condition="python:start==0"> |
| 26 | + <div id="classhelp-controls"> |
26 | 27 | <!--input type="button" name="btn_clear" |
27 | 28 | value="Clear" onClick="clearList()"/ --> |
28 | 29 | <input type="text" name="text_preview" size="24" class="preview" |
29 | 30 | onchange="reviseList(this.value);"/> |
30 | 31 | <input type="button" name="btn_reset" |
31 | | - value=" Cancel " onclick="resetList(); window.close();"/> |
| 32 | + value=" Cancel " onclick="resetList(); window.close();" |
| 33 | + i18n:attributes="value" /> |
32 | 34 | <input type="button" name="btn_apply" class="apply" |
33 | | - value=" Apply " onclick="updateList(); window.close();"/> |
| 35 | + value=" Apply " onclick="updateList(); window.close();" |
| 36 | + i18n:attributes="value" /> |
34 | 37 | </div> |
35 | 38 |
|
36 | 39 | <table class="classhelp"> |
|
39 | 42 | <th tal:repeat="prop props" tal:content="prop"></th> |
40 | 43 | </tr> |
41 | 44 | <tr tal:repeat="item batch"> |
42 | | - <td> |
43 | | - <input type="checkbox" name="check" |
44 | | - onclick="updatePreview();" |
45 | | - tal:condition="python:start==0" |
46 | | - tal:define="attr python:item[props[0]]" |
47 | | - tal:attributes="value attr; id attr" /> |
48 | | - </td> |
49 | | - <td tal:repeat="prop props"> |
50 | | - <label class="classhelp-label" |
51 | | - tal:attributes="for python:item[props[0]]" |
52 | | - tal:content="structure python:item[prop]"></label> |
53 | | - </td> |
| 45 | + <tal:block tal:define="attr python:item[props[0]]"> |
| 46 | + <td> |
| 47 | + <input type="checkbox" name="check" |
| 48 | + onclick="updatePreview();" |
| 49 | + tal:attributes="value attr; id string:id_$attr" /> |
| 50 | + </td> |
| 51 | + <td tal:repeat="prop props"> |
| 52 | + <label class="classhelp-label" |
| 53 | + tal:attributes="for string:id_$attr" |
| 54 | + tal:content="structure python:item[prop]"></label> |
| 55 | + </td> |
| 56 | + </tal:block> |
54 | 57 | </tr> |
55 | 58 | <tr> |
56 | 59 | <th> <b>x</b></th> |
|
61 | 64 | <tr class="navigation"> |
62 | 65 | <th> |
63 | 66 | <a tal:define="prev batch/previous" tal:condition="prev" |
64 | | - tal:attributes="href string:${request/classname}?@template=help&@startwith=${prev/first}&properties=${request/form/properties/value}" |
65 | | - i18n:translate=""><< previous</a> |
| 67 | + tal:attributes="href string:${request/classname}?@template=help&@startwith=${prev/first}&property=${property}&properties=${request/form/properties/value}" |
| 68 | + i18n:translate=""><< previous</a> |
66 | 69 | |
67 | 70 | </th> |
68 | 71 | <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start" |
|
71 | 74 | /></th> |
72 | 75 | <th> |
73 | 76 | <a tal:define="next batch/next" tal:condition="next" |
74 | | - tal:attributes="href string:${request/classname}?@template=help&@startwith=${next/first}&properties=${request/form/properties/value}" |
75 | | - i18n:translate="">next >></a> |
| 77 | + tal:attributes="href string:${request/classname}?@template=help&@startwith=${next/first}&property=${property}&properties=${request/form/properties/value}" |
| 78 | + i18n:translate="">next >></a> |
76 | 79 | |
77 | 80 | </th> |
78 | 81 | </tr> |
|
0 commit comments