source: main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/applicants/browser_templates/applicantssearchpage.pt @ 10021

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

Implement search page for applicants. Add fullname to applicants_catalog.
Plugins must be updated and /reindex?ctlg=applicants must be performed.

Tests will follow.

Rename ApplicantCatalog? to ApplicantsCatalog?. This does not affect persistent data.

Rename StudentIndexes? to StudentsCatalog?.

Add more localization.

File size: 1.6 KB
Line 
1<form method="POST" i18n:domain="waeup.kofa">
2<br />
3  <input class="btn primary" type="submit" name="search"
4    tal:attributes="value view/search_button" />
5  <span i18n:translate="">for applicant</span>
6
7  <select name="searchtype">
8    <option i18n:translate="" value="applicant_id">with id</option>
9    <option i18n:translate="" value="fullname">with name</option>
10    <option i18n:translate="" value="reg_number">with registration number</option>
11    <option i18n:translate="" value="email">with email address</option>
12  </select>
13
14  <input type="text" name="searchterm" />
15
16  <p>&nbsp;</p>
17  <div tal:condition="view/results">
18    <h3 i18n:translate="">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 dataTable">
24      <thead>
25      <tr>
26        <th i18n:translate="">Applicant Id</th>
27        <th i18n:translate="">Reg. Number</th>
28        <th i18n:translate="">Application State</th>
29        <th i18n:translate="">Full Name</th>
30      </tr>
31      </thead>
32      <tbody>
33      <tr tal:repeat="item view/results" class="gradeC">
34        <td> <a tal:attributes="href python:view.url(item)">
35          <span tal:content="item/applicant_id">XXXX_1234</span></a>
36        </td>
37        <td class="center">
38          <span tal:content="item/reg_number">9999999</span>
39        </td>
40        <td tal:content="item/state">admitted</td>
41        <td tal:content="item/display_fullname">Bob</td>
42      </tr>
43      </tbody>
44    </table>
45    <br />
46  </div>
47</form>
Note: See TracBrowser for help on using the repository browser.