source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containerpage.pt @ 6768

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

Add more search types.

File size: 1.5 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="name">with name</option>
12    <option value="reg_number">with registration number</option>
13    <option value="matric_number">with matriculation number</option>
14  </select>
15
16  <input type="text" name="searchterm" />
17
18  <p>&nbsp;</p>
19  <div tal:condition="view/hitlist">
20    <h3>Search Results</h3>
21    <input type="hidden" name="old_searchterm"
22         tal:attributes="value view/searchterm" />
23    <input type="hidden" name="old_searchtype"
24         tal:attributes="value view/searchtype" />
25    <table class="display dataTableManage">
26      <thead>
27      <tr>
28        <th>Student Id</th>
29        <th>Registration Number</th>
30        <th>Matriculation Number</th>
31        <th>Name</th>
32      </tr>
33      </thead>
34      <tbody>
35      <tr tal:repeat="item view/hitlist">
36        <td> <a tal:attributes="href item/url">
37          <span tal:content="item/student_id">A123456</span></a>
38        </td>
39        <td> <a tal:attributes="href item/url">
40          <span tal:content="item/reg_number">9999999</span></a>
41        </td>
42        <td> <a tal:attributes="href item/url">
43          <span tal:content="item/matric_number">9999999</span></a>
44        </td>
45        <td tal:content="item/name">Bob</td>
46      </tr>
47      </tbody>
48    </table>
49    <br />
50  </div>
51</form>
Note: See TracBrowser for help on using the repository browser.