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

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

Add matriculation number to student's base data.

Registration and matriculation numbers must be unique. Use UniqueField? indexes in catalog for both.

Test fails, I don't know why.

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="name">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    <table class="display dataTableManage">
24      <thead>
25      <tr>
26        <th>Student Id</th>
27        <th>Registration Number</th>
28        <th>Matriculation Number</th>
29        <th>Name</th>
30      </tr>
31      </thead>
32      <tbody>
33      <tr tal:repeat="item view/hitlist">
34        <td> <a tal:attributes="href item/url">
35          <span tal:content="item/student_id">A123456</span></a>
36        </td>
37        <td> <a tal:attributes="href item/url">
38          <span tal:content="item/reg_number">9999999</span></a>
39        </td>
40        <td> <a tal:attributes="href item/url">
41          <span tal:content="item/matric_number">9999999</span></a>
42        </td>
43        <td tal:content="item/name">Bob</td>
44      </tr>
45      </tbody>
46    </table>
47    <br />
48  </div>
49</form>
Note: See TracBrowser for help on using the repository browser.