source: main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/containermanagepage.pt @ 11035

Last change on this file since 11035 was 11026, checked in by Henrik Bettermann, 11 years ago

Next try to format select elements coming from zope.formlib or from Kofa pagetemplates.

File size: 2.5 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
6  <select name="searchtype" class="form-control">
7    <option i18n:translate="" value="student_id">with id</option>
8    <option i18n:translate="" value="fullname">with name</option>
9    <option i18n:translate="" value="reg_number">with registration number</option>
10    <option i18n:translate="" value="matric_number">with matriculation number</option>
11    <option i18n:translate="" value="current_session">in session</option>
12    <option i18n:translate="" value="depcode">in department</option>
13    <option i18n:translate="" value="current_mode">in study mode</option>
14    <option i18n:translate="" value="suspended">
15      with deactivated account (search term omitted)
16    </option>
17  </select>
18
19  <input type="text" name="searchterm" />
20
21  <p>&nbsp;</p>
22  <div tal:condition="view/hitlist">
23    <h3>Search Results</h3>
24    <input type="hidden" name="old_searchterm"
25         tal:attributes="value view/searchterm" />
26    <input type="hidden" name="old_searchtype"
27         tal:attributes="value view/searchtype" />
28
29    <input type="checkbox" onClick="toggle(this, 'entries')" />
30    <span  i18n:translate="">Select all</span>
31    <br /><br />
32
33    <table class="display dataTableManage">
34      <thead>
35        <tr>
36          <th>&nbsp;</th>
37        <th i18n:translate="">Student Id</th>
38        <th i18n:translate="">Reg. Number</th>
39        <th i18n:translate="">Matric. Number</th>
40        <th i18n:translate="">State</th>
41        <th i18n:translate="">Full Name</th>
42        </tr>
43      </thead>
44      <tbody>
45        <tr tal:repeat="item view/hitlist" class="gradeC">
46          <td><input type="checkbox" name="entries"
47                     tal:attributes="value item/context/__name__" /></td>
48          <td> <a tal:attributes="href item/url">
49          <span tal:content="item/student_id">A123456</span></a>
50        </td>
51        <td class="center"> <a tal:attributes="href item/url">
52          <span tal:content="item/reg_number">9999999</span></a>
53        </td>
54        <td class="center"> <a tal:attributes="href item/url">
55          <span tal:content="item/matric_number">9999999</span></a>
56        </td>
57        <td tal:content="item/state">admitted</td>
58          <td tal:content="item/display_fullname">Bob</td>
59        </tr>
60      </tbody>
61    </table>
62   
63    <input type="submit" name="remove"
64           tal:attributes="value view/remove_button" class="btn"
65           onclick="return confirmPost('Are you sure?')"/>
66
67  </div>
68</form>
Note: See TracBrowser for help on using the repository browser.