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

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

Define two different (convenience?) methods: fullname and display_fullname. The first one is a hyphen-separated string of all name parts and is meant for indexing only. The second one uses the SIRPUtils fullname method and is meant for displaying the fullname in the UI. It can be easily customized according to the requirements of the school.

File size: 1.6 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    <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.