Changeset 735 for WAeUP_SRP


Ignore:
Timestamp:
21 Oct 2006, 10:52:05 (18 years ago)
Author:
Henrik Bettermann
Message:

academics_document_view.pt with student's name in title

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

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

    r556 r735  
    11<metal:html tal:define="info context/getDocumentInfo;
    2             is_manager info/is_manager|nothing;"
     2                        infos context/getStudentInfo;
     3                        is_manager info/is_manager|nothing;"
    34            >
    45  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    910        Up one level
    1011      </a>
    11       <h3 tal:content="here/title_or_id" />
     12      <h3>
     13         <span tal:condition="python:is_manager and infos">
     14           <span tal:content="infos/student/Title" />:
     15         </span>
     16         <span tal:content="here/title_or_id" />
     17      </h3>
    1218    </metal:block>
    1319    <metal:main fill-slot="main">
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r723 r735  
    2828        if context.portal_type == 'Student':
    2929            student_id = context.getId()
     30        elif context.aq_parent.portal_type == 'Student':
     31            student_id = context.aq_parent.getId()
     32        elif context.aq_parent.aq_parent.portal_type == 'Student':
     33            student_id = context.aq_parent.aq_parent.getId()   
     34        elif context.aq_parent.aq_parent.aq_parent.portal_type == 'Student':
     35            student_id = context.aq_parent.aq_parent.aq_parent.getId()   
    3036        else:
    31             student_id = context.aq_parent.getId()
     37            student_id = member_id           
    3238    else:
    3339        student_id = member_id
Note: See TracChangeset for help on using the changeset viewer.