e262bf4113732df81a1dac5547d5ab36eeefc233
1 <tal:block tal:define="vok context/is_view_ok">
2 <p tal:condition="not:vok" i18n:translate="">You are not
3 allowed to view this page.</p>
5 <tal:if condition="context/is_view_ok">
6 <tal:def define="batch request/batch">
7 <form>
8 <table class="classhelp"
9 tal:define="props python:request.form['properties'].value.split(',');
10 legend templates/query/macros/legend;
11 navigation templates/query/macros/navigation;">
12 <thead>
13 <tr metal:use-macro="navigation"/>
14 <tr metal:use-macro="legend"/>
15 </thead>
16 <tfoot tal:condition=true>
17 <tr metal:use-macro="legend"/>
18 <tr metal:use-macro="navigation"/>
19 </tfoot>
20 <tbody>
21 <tr tal:repeat="item request/batch">
22 <tal:block tal:define="attr python:item[props[0]]" >
23 <td>
24 <input name="check"
25 onclick="switch_val(text_field, this);" type="checkbox"
26 tal:attributes="value attr; id string:id_$attr" />
27 </td>
28 <td tal:repeat="prop props">
29 <label class="classhelp-label"
30 tal:attributes="for string:id_$attr"
31 tal:content="structure python:item[prop]"></label>
32 </td>
33 </tal:block>
34 </tr>
35 </tbody>
36 </table>
37 </form>
38 </tal:def> <!-- batch -->
39 </tal:if>
40 </tal:block>