|
1 | 1 | <tal:block metal:use-macro="templates/help/macros/frame"> |
2 | 2 | <tal:block metal:fill-slot="content"> |
3 | 3 | <tal:block tal:condition="python:request.form.has_key('property')"> |
4 | | - <form name="frm_help" action="#" |
5 | | - tal:define="batch request/batch; |
6 | | - props python:request.form['properties'].value.split(',')"> |
7 | | - |
8 | | - <div id="classhelp-controls" tal:condition="context/is_edit_ok"> |
9 | | - <!--input type="button" name="btn_clear" |
10 | | - value="Clear" onClick="clearList()"/ --> |
11 | | - <input type="text" name="text_preview" size="24" class="preview" |
12 | | - onchange="reviseList(this.value);"/> |
13 | | - <input type="button" name="btn_reset" |
14 | | - value=" Cancel " onclick="resetList(); parent.close();" |
15 | | - i18n:attributes="value" /> |
16 | | - <input type="button" name="btn_apply" class="apply" |
17 | | - value=" Apply " onclick="updateList(); parent.close();" |
18 | | - i18n:attributes="value" /> |
19 | | - </div> |
20 | | - <table width="100%"> |
21 | | - <tr class="navigation"> |
22 | | - <th> |
23 | | - <a tal:define="prev batch/previous" tal:condition="prev" |
24 | | - tal:attributes="href python:request.indexargs_url(request.classname, |
25 | | - {'@template':'help', 'property': request.form['property'].value, |
26 | | - 'properties': request.form['properties'].value, |
27 | | - 'form': request.form['form'].value, |
28 | | - 'type': request.form['type'].value, |
29 | | - '@startwith':prev.first, '@pagesize':prev.size})" |
30 | | - i18n:translate="" ><< previous</a> |
31 | | - |
32 | | - </th> |
33 | | - <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start" |
34 | | - />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end" |
35 | | - /> out of <span tal:replace="batch/sequence_length" i18n:name="total" |
36 | | - /> |
37 | | - </th> |
38 | | - <th> |
39 | | - <a tal:define="next batch/next" tal:condition="next" |
40 | | - tal:attributes="href python:request.indexargs_url(request.classname, |
41 | | - {'@template':'help', 'property': request.form['property'].value, |
42 | | - 'properties': request.form['properties'].value, |
43 | | - 'form': request.form['form'].value, |
44 | | - 'type': request.form['type'].value, |
45 | | - '@startwith':next.first, '@pagesize':next.size})" |
46 | | - i18n:translate="" >next >></a> |
47 | | - |
48 | | - </th> |
49 | | - </tr> |
50 | | - </table> |
51 | | - |
52 | | - <table class="classhelp"> |
53 | | - <tr> |
54 | | - <th tal:condition="context/is_edit_ok"> <b>x</b></th> |
55 | | - <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
56 | | - </tr> |
| 4 | + <form name="frm_help" action="#"> |
| 5 | + <table class="classhelp" |
| 6 | + tal:define="props python:request.form['properties'].value.split(','); |
| 7 | + legend templates/help/macros/legend; |
| 8 | + navigation templates/help/macros/batch_navi; |
| 9 | + batch request/batch;"> |
| 10 | + <thead> |
| 11 | + <tr metal:use-macro="legend"/> |
| 12 | + <tr metal:use-macro="navigation"/> |
| 13 | + </thead> |
| 14 | + <tfoot> |
| 15 | + <tr metal:use-macro="navigation"/> |
| 16 | + <tr metal:use-macro="legend"/> |
| 17 | + </tfoot> |
57 | 18 | <tr tal:repeat="item batch"> |
58 | 19 | <tal:block tal:define="attr python:item[props[0]]" > |
59 | | - <td tal:condition="context/is_edit_ok"> |
60 | | - <input name="check" |
61 | | - onclick="updatePreview();" |
62 | | - tal:attributes="type python:request.form['type'].value; |
63 | | - value attr; id string:id_$attr" /> |
64 | | - </td> |
65 | | - <td tal:repeat="prop props"> |
66 | | - <label class="classhelp-label" |
67 | | - tal:attributes="for string:id_$attr" |
68 | | - tal:content="structure python:item[prop]"></label> |
69 | | - </td> |
70 | | - </tal:block> |
71 | | - </tr> |
72 | | - <tr> |
73 | | - <th> <b>x</b></th> |
74 | | - <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
| 20 | + <td tal:repeat="prop props"> |
| 21 | + <label class="classhelp-label" |
| 22 | + tal:attributes="for string:id_$attr" |
| 23 | + tal:content="structure python:item[prop]"></label> |
| 24 | + </td> |
| 25 | + </tal:block> |
75 | 26 | </tr> |
76 | 27 | </table> |
77 | 28 |
|
|
0 commit comments