source: main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/containerpage.pt @ 10009

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

Backup of local changes in branch (work in progress).

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