Changeset 563 for WAeUP_SRP/trunk/skins


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/courses_index_view.pt

    r556 r563  
    6565                    <strong tal:content="row/title" /></a> </td>
    6666                <td tal:content="row/id"> </td>
     67                <td tal:content="row/review_state"> </td>
    6768                <td><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td>
    6869              </tr>
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py

    r556 r563  
    4242    row['title'] = rd.Title()
    4343    row['url'] = ro.absolute_url()
     44    row['review_state'] = wf.getInfoFor(ro,'review_state','None')
    4445    items.append(row)
    4546info['courses'] = items
  • 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.