source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containermanagepage.pt @ 6820

Last change on this file since 6820 was 6820, checked in by Henrik Bettermann, 13 years ago

Add a 'toggle all' Javascript function to klick all select boxes at the same time in in large forms. Use this function in the containermanagepage.pt.

jquery.dataTables.min.js: Allow viewing 1000 and even 5000 rows.

File size: 1.3 KB
Line 
1<h2 tal:content="view/label">Title</h2>
2<form method="POST">
3
4<br />
5
6  <input type="submit" name="search" value="Search" />
7  for students
8
9  <select name="searchtype">
10    <option value="student_id">with id</option>
11    <option value="fullname">with name</option>
12  </select>
13
14  <input type="text" name="searchterm" />
15
16  <p>&nbsp;</p>
17  <div tal:condition="view/hitlist">
18    <h3>Search Results</h3>
19    <input type="hidden" name="old_searchterm"
20         tal:attributes="value view/searchterm" />
21    <input type="hidden" name="old_searchtype"
22         tal:attributes="value view/searchtype" />
23
24    <input type="checkbox" onClick="toggle(this, 'entries')" /> Select all
25    <br /><br />
26
27    <table class="display dataTableManage">
28      <thead>
29        <tr>
30          <th>&nbsp;</th>
31          <th>Student Id</th><th>Fullname</th>
32        </tr>
33      </thead>
34      <tbody>
35        <tr tal:repeat="item view/hitlist">
36          <td><input type="checkbox" name="entries"
37                     tal:attributes="value item/context/__name__" /></td>
38          <td> <a tal:attributes="href item/url">
39          <span tal:content="item/student_id">A123456</span></a>
40        </td>
41          <td tal:content="item/fullname">Bob</td>
42        </tr>
43      </tbody>
44    </table>
45   
46    <div class="actionButtons">
47        <input type="submit" name="remove" value="Remove selected" />
48    </div>
49
50  </div>
51</form>
Note: See TracBrowser for help on using the repository browser.