paul@0 | 1 | <!-- |
paul@0 | 2 | Macros for framed help windows |
paul@0 | 3 | --> |
paul@0 | 4 | |
paul@0 | 5 | <!-- legend for helper search results --> |
paul@0 | 6 | <thead> |
paul@0 | 7 | <tr metal:define-macro="legend"> |
paul@0 | 8 | <th><b>x</b></th> |
paul@0 | 9 | <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
paul@0 | 10 | </tr> |
paul@0 | 11 | </thead> |
paul@0 | 12 | |
paul@0 | 13 | <table width="100%" |
paul@0 | 14 | metal:define-macro="batch_navi" |
paul@0 | 15 | tal:define="prev batch/previous; |
paul@0 | 16 | next batch/next; |
paul@0 | 17 | " |
paul@0 | 18 | tal:condition="python:prev or next"> |
paul@0 | 19 | <tr class="navigation"> |
paul@0 | 20 | <th width="30%"> |
paul@0 | 21 | <a tal:condition="prev" |
paul@0 | 22 | tal:attributes="href python:request.indexargs_url(request.classname, {'@template':'help-list', 'property': request.form['property'].value, 'properties': request.form['properties'].value, 'form': request.form['form'].value, '@startwith':prev.first, '@pagesize':prev.size})" |
paul@0 | 23 | i18n:translate="" ><< previous</a> |
paul@0 | 24 | |
paul@0 | 25 | </th> |
paul@0 | 26 | <th i18n:translate="" width="40%"><span tal:replace="batch/start" i18n:name="start" |
paul@0 | 27 | />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end" |
paul@0 | 28 | /> out of <span tal:replace="batch/sequence_length" i18n:name="total" |
paul@0 | 29 | /> |
paul@0 | 30 | </th> |
paul@0 | 31 | <th width="30%"> |
paul@0 | 32 | <a tal:condition="next" |
paul@0 | 33 | tal:attributes="href python:request.indexargs_url(request.classname, {'@template':'help-list', 'property': request.form['property'].value, 'properties': request.form['properties'].value, 'form': request.form['form'].value, '@startwith':next.first, '@pagesize':next.size})" |
paul@0 | 34 | i18n:translate="" >next >></a> |
paul@0 | 35 | |
paul@0 | 36 | </th> |
paul@0 | 37 | </tr> |
paul@0 | 38 | </table> |