Ignore:
Timestamp:
27 Sep 2006, 06:54:55 (18 years ago)
Author:
joachim
Message:

import of csv data ready, startet work on student search

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r538 r563  
    1313"""
    1414request = context.REQUEST
    15 
     15form = request.form
     16fget = form.get
    1617wf = context.portal_workflow
    1718mtool = context.portal_membership
    1819member = mtool.getAuthenticatedMember()
    1920path_info = request.get('PATH_INFO').split('/')
    20 
     21roles = member.getRoles()
    2122info = {}
     23info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    2224member_id = str(member)
    23 ##if member_id not in path_info:
    24 ##    return None
    2525if student is None:
    2626    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;">
    24
    35  <metal:body use-macro="here/main_template/macros/master">
     
    911      </span>
    1012      <span tal:condition="isManager">
    11       <h3>All Students</h3>
     13      <h3>Search Students by</h3>
    1214        <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">
    1428          <tr tal:repeat="student students">
    1529            <td><a href="id" tal:attributes="href string:${student/absolute_url}"
Note: See TracChangeset for help on using the changeset viewer.