Last change
on this file since 563 was
563,
checked in by joachim, 18 years ago
|
import of csv data ready, startet work on student search
|
File size:
1.8 KB
|
Rev | Line | |
---|
[563] | 1 | <metal:html tal:define="info context/searchStudents; |
---|
| 2 | students info/students; |
---|
| 3 | is_manager info/is_manager;"> |
---|
[535] | 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"> |
---|
[563] | 13 | <h3>Search Students by</h3> |
---|
[543] | 14 | <br /> |
---|
[563] | 15 | <form action="." method="post" tal:attributes="action context/absolute_url"> |
---|
| 16 | <table> |
---|
| 17 | <tr> |
---|
| 18 | <td>StudentId</td><td><input type="text" name="student_id" /></td> |
---|
| 19 | <td>JAMB Id</td><td><input type="text" name="jamb_id" /></td> |
---|
| 20 | </tr> |
---|
| 21 | <tr> |
---|
| 22 | <td>Matric No</td><td><input type="text" name="matric_no" /></td> |
---|
| 23 | <td>Student Name</td><td><input type="text" name="name" /></td> |
---|
| 24 | </tr> |
---|
| 25 | </table> |
---|
| 26 | </form> |
---|
| 27 | <table tal:condition="students"> |
---|
[535] | 28 | <tr tal:repeat="student students"> |
---|
| 29 | <td><a href="id" tal:attributes="href string:${student/absolute_url}" |
---|
| 30 | tal:content="student/getId"></a></td> |
---|
| 31 | <span tal:omit-tag="" tal:define="info python: context.getStudentInfo(student)"> |
---|
| 32 | <td><span tal:replace="python: info['per_doc'].lastname" /></td> |
---|
| 33 | <td><span tal:replace="python: info['app_doc'].jamb_reg_no" /></td> |
---|
| 34 | <td><span tal:replace="info/review_state" /></td> |
---|
| 35 | </span> |
---|
| 36 | </tr> |
---|
| 37 | </table> |
---|
| 38 | </span> |
---|
| 39 | </metal:main> |
---|
| 40 | </metal:body> |
---|
| 41 | </metal:html> |
---|
Note: See
TracBrowser for help on using the repository browser.