Code

Simplify.
[roundup.git] / share / roundup / templates / devel / html / _generic.query.html
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     <form>
7      <table class="classhelp"
8             tal:define="props python:request.form['properties'].value.split(',');
9                         legend templates/query/macros/legend;
10                         navigation templates/query/macros/navigation;
11                         batch request/batch;">
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:if>
39 </tal:block>