source: WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt @ 582

Last change on this file since 582 was 572, checked in by joachim, 18 years ago

search for students ready for testing, update waeup_student_wf first

File size: 2.7 KB
Line 
1<metal:html tal:define="info context/searchStudents;
2                        students info/students;
3                        is_manager info/is_manager;">
4
5  <metal:body use-macro="here/main_template/macros/master">
6
7    <metal:main fill-slot="main"
8                tal:define="isManager python:'Manager' in member.getRoles() or 'SectionManager' in member.getRoles()">
9      <span tal:condition="not: isManager">
10        <metal:block use-macro="here/error_not_found/macros/not_found" />
11      </span>
12      <span tal:condition="isManager">
13      <h3>Search Students by</h3>
14      <br />
15      <form  action="." method="post" tal:attributes="action string: ${context/absolute_url}/students_manager_view">
16        <table>           
17          <tr>           
18            <td>Status</td><td><div class="field"><span tal:condition="python:0" tal:content="info/wf_states"/>
19                <select name="state" tal:condition="python:1">
20                  <option value="state"
21                          tal:repeat="state info/wf_states"
22                          tal:attributes="value state;selected python: info['state'] == state"
23                          tal:content="state"></option>
24                </select>
25              </div>
26            </td>
27          </tr>
28          <tr>           
29              <td>StudentId</td><td><input type="text" name="student_id"
30                                           tal:attributes="value info/student_id"/></td>
31              <td>Student Name</td><td><input type="text" name="name"
32                                              tal:attributes="value info/name"/></td>
33            </tr>
34            <tr>
35              <td>Matric No</td><td><input type="text" name="matric_no"
36                                           tal:attributes="value info/matric_no"/></td>
37              <td>JAMB Id</td><td><input type="text" name="jamb_id"
38                                         tal:attributes="value info/jamb_id"/></td>
39            </tr>
40          <tr><td><input type="submit" class="context" name="search" value="search" /></td></tr>
41            </table>
42      </form>
43        <table tal:condition="students">
44          <tr tal:repeat="student students">
45            <td><a href="id" tal:attributes="href string:${student/absolute_url}"
46                   tal:content="student/getId"></a></td>   
47            <span tal:omit-tag="" tal:define="info python: context.getStudentInfo(student)">
48            <td><span tal:replace="python: info['per_doc'].lastname" /></td>   
49            <td><span tal:replace="python: info['app_doc'].jamb_reg_no" /></td>   
50            <td><span tal:replace="info/review_state" /></td>   
51            </span>
52          </tr>
53        </table>
54      </span>
55    </metal:main>
56  </metal:body>
57</metal:html>
Note: See TracBrowser for help on using the repository browser.