add a 'select all' checkbox in the heading

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3095 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2008-12-29 09:50:19 +00:00
parent 0fd3b8d78d
commit 9e242aa0e5

View file

@ -49,7 +49,11 @@
<thead>
<tr>
<th>&nbsp;</th>
<th style="margin:0; padding:0">
<input type="checkbox" class="noborder" title="Select all items"
i18n:attributes="title"
onclick="f = document.forms[0]['ids:list'];
for (i in f) f[i].checked=this.checked;" /></th>
<th i18n:translate="">Name</th>
<th i18n:translate="">Title</th>
<th i18n:translate="">Size</th>
@ -80,8 +84,7 @@
id_quoted item/id/url:quote"
tal:attributes="class python:oddrow and 'even' or 'odd'" >
<td>
<input type="checkbox" class="noborder" name="ids:list" id="#"
value="#"
<input type="checkbox" class="noborder" name="ids:list"
tal:attributes="value item/id;
id item/cb_id;
checked request/ids_checked|nothing;"/>