Code

Simplify.
[roundup.git] / share / roundup / templates / devel / html / _generic.help.html
1 <tal:block metal:use-macro="templates/help/macros/frame">
2 <tal:block metal:fill-slot="content">
3 <tal:block tal:condition="python:request.form.has_key('property')">
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>
18        <tr tal:repeat="item batch">
19          <tal:block tal:define="attr python:item[props[0]]" >
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>
26        </tr>
27      </table>
29  </form>
30    <script type="text/javascript"><!--
31 var text_field = document.frm_help.text_preview;
32 original_field=form[field].value;
33 text_field.value=original_field;
34 //--></script>
35  </tal:block>
36  <tal:block tal:condition="python:not request.form.has_key('property')">
37  <tal:block tal:define="batch request/batch;
38                         props python:request.form['properties'].value.split(',')">
39      <table width="100%">
40       <tr class="navigation">
41        <th>
42         <a tal:define="prev batch/previous" tal:condition="prev"
43            tal:attributes="href python:request.indexargs_url(request.classname,
44            {'@template':'help', 'property': request.form['property'].value,
45             'properties': request.form['properties'].value,
46             'form': request.form['form'].value,
47             'type': request.form['type'].value,
48             '@startwith':prev.first, '@pagesize':prev.size})"
49            i18n:translate="" >&lt;&lt; previous</a>
50         &nbsp;
51        </th>
52        <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
53         />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
54         /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
55         />
56        </th>
57        <th>
58         <a tal:define="next batch/next" tal:condition="next"
59            tal:attributes="href python:request.indexargs_url(request.classname,
60            {'@template':'help', 'property': request.form['property'].value,
61             'properties': request.form['properties'].value,
62             'form': request.form['form'].value,
63             'type': request.form['type'].value,
64             '@startwith':next.first, '@pagesize':next.size})"
65            i18n:translate="" >next &gt;&gt;</a>
66         &nbsp;
67        </th>
68       </tr>
69      </table>
71      <table class="classhelp">
72        <tr>
73            <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
74        </tr>
75        <tr tal:repeat="item batch">
76          <tal:block tal:define="attr python:item[props[0]]" >
77              <td tal:repeat="prop props">
78                  <label class="classhelp-label"
79                         tal:attributes="for string:id_$attr"
80                         tal:content="structure python:item[prop]"></label>
81              </td>
82            </tal:block>
83        </tr>
84        <tr>
85            <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
86        </tr>
87      </table>
88  </tal:block>
89  </tal:block>
90 </tal:block> <!-- content -->
91 </tal:block>