Changeset 887


Ignore:
Timestamp:
17 Nov 2006, 16:38:42 (18 years ago)
Author:
joachim
Message:

more unifications

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

Legend:

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

    r886 r887  
    158158students = []
    159159items.sort(cmp_id)
     160co_view = False
    160161if items:
    161162    for item in items:
    162163        #if context.isClearanceOfficer(info):
    163164        if "ClearanceOfficers" in member.getGroups():
     165            co_view = True
    164166            droles = member.getRolesInContext(item)
    165167            if "ClearanceOfficer" in droles:
     
    177179                             students = students,
    178180                             allowed = True,
     181                             co_view = co_view,
    179182                             )
    180183return context.students_manager_view(rendered = rend,
  • WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt

    r885 r887  
    6363                </td>   
    6464                <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td>   
    65                 <td><span tal:replace="student/review_state" /></td>   
     65                <td tal:condition="options/co_view|nothing"><a href="id"
     66                       tal:attributes="href string:${student/student/clearance/absolute_url}/clearance_edit_form_manager"
     67                       tal:content="student/review_state"></a></td>   
     68                <td tal:condition="not: options/co_view|nothing"><span tal:replace="student/review_state" /></td>   
    6669              </tr>
    6770            </span>
Note: See TracChangeset for help on using the changeset viewer.