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

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

Move form label to site layout pagetemplates. This saves even more code.

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