Code

Fix small typos.
[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        tal:define="batch request/batch;
6                    props python:request.form['properties'].value.split(',')">
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="" >&lt;&lt; previous</a>
31         &nbsp;
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 &gt;&gt;</a>
47         &nbsp;
48        </th>
49       </tr>
50      </table>
52      <table class="classhelp">
53        <tr>
54            <th tal:condition="context/is_edit_ok">&nbsp;<b>x</b></th>
55            <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
56        </tr>
57        <tr tal:repeat="item batch">
58          <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>&nbsp;<b>x</b></th>
74            <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
75        </tr>
76      </table>
78  </form>
79    <script type="text/javascript"><!--
80 var text_field = document.frm_help.text_preview;
81 original_field=form[field].value;
82 text_field.value=original_field;
83 //--></script>
84  </tal:block>
85  <tal:block tal:condition="python:not request.form.has_key('property')">
86  <tal:block tal:define="batch request/batch;
87                         props python:request.form['properties'].value.split(',')">
88      <table width="100%">
89       <tr class="navigation">
90        <th>
91         <a tal:define="prev batch/previous" tal:condition="prev"
92            tal:attributes="href python:request.indexargs_url(request.classname,
93            {'@template':'help', 'property': request.form['property'].value,
94             'properties': request.form['properties'].value,
95             'form': request.form['form'].value,
96             'type': request.form['type'].value,
97             '@startwith':prev.first, '@pagesize':prev.size})"
98            i18n:translate="" >&lt;&lt; previous</a>
99         &nbsp;
100        </th>
101        <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
102         />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
103         /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
104         />
105        </th>
106        <th>
107         <a tal:define="next batch/next" tal:condition="next"
108            tal:attributes="href python:request.indexargs_url(request.classname,
109            {'@template':'help', 'property': request.form['property'].value,
110             'properties': request.form['properties'].value,
111             'form': request.form['form'].value,
112             'type': request.form['type'].value,
113             '@startwith':next.first, '@pagesize':next.size})"
114            i18n:translate="" >next &gt;&gt;</a>
115         &nbsp;
116        </th>
117       </tr>
118      </table>
120      <table class="classhelp">
121        <tr>
122            <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
123        </tr>
124        <tr tal:repeat="item batch">
125          <tal:block tal:define="attr python:item[props[0]]" >
126              <td tal:repeat="prop props">
127                  <label class="classhelp-label"
128                         tal:attributes="for string:id_$attr"
129                         tal:content="structure python:item[prop]"></label>
130              </td>
131            </tal:block>
132        </tr>
133        <tr>
134            <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
135        </tr>
136      </table>
137  </tal:block>
138  </tal:block>
139 </tal:block> <!-- content -->
140 </tal:block>