Changeset 563 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 27 Sep 2006, 06:54:55 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r538 r563 13 13 """ 14 14 request = context.REQUEST 15 15 form = request.form 16 fget = form.get 16 17 wf = context.portal_workflow 17 18 mtool = context.portal_membership 18 19 member = mtool.getAuthenticatedMember() 19 20 path_info = request.get('PATH_INFO').split('/') 20 21 roles = member.getRoles() 21 22 info = {} 23 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 22 24 member_id = str(member) 23 ##if member_id not in path_info:24 ## return None25 25 if student is None: 26 26 students = getattr(context,'students',None) -
WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt
r543 r563 1 <metal:html tal:define="info context/getStudentInfo"> 1 <metal:html tal:define="info context/searchStudents; 2 students info/students; 3 is_manager info/is_manager;"> 2 4 3 5 <metal:body use-macro="here/main_template/macros/master"> … … 9 11 </span> 10 12 <span tal:condition="isManager"> 11 <h3> All Students</h3>13 <h3>Search Students by</h3> 12 14 <br /> 13 <table tal:define="students python: context.objectValues()"> 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"> 14 28 <tr tal:repeat="student students"> 15 29 <td><a href="id" tal:attributes="href string:${student/absolute_url}"
Note: See TracChangeset for help on using the changeset viewer.