Changeset 2730


Ignore:
Timestamp:
21 Nov 2007, 15:51:18 (17 years ago)
Author:
joachim
Message:

fix for #410

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py

    r2477 r2730  
    6666       info['session'] = True
    6767
     68info['base_info'] = context.getFormattedStudentEntry(st_brain)
    6869
    6970info['id'] = student_id
  • WAeUP_SRP/base/skins/waeup_student/student_view.pt

    r2680 r2730  
    22  <metal:main fill-slot="main"
    33              tal:define="info context/getStudentFolderInfo;
    4               baseinfo context/getStudentBaseInfo"
     4              baseinfo info/base_info"
    55              >
    66    <metal:block tal:condition="not: info">
     
    2424          <tr>
    2525            <td width="220px">Registration Number:</td>
    26             <td><span tal:content="baseinfo/student/jamb_reg_no" /></td>
     26            <td><span tal:content="baseinfo/jamb_reg_no" /></td>
    2727          </tr>
    2828          <tr>
    2929            <td>Matriculation Number:</td>
    30             <td><span tal:content="baseinfo/student/matric_no" /></td>
     30            <td><span tal:content="baseinfo/matric_no" /></td>
    3131          </tr>     
    3232          <tr>
    3333            <td>Certificate Code:</td>
    34             <td><span tal:content="baseinfo/student/course" /></td>
     34            <td><span tal:content="baseinfo/course" /></td>
    3535          </tr>
    3636          <tr>
    3737            <td>Faculty Id:</td>
    38             <td tal:content="baseinfo/student/faculty" />
     38            <td tal:content="baseinfo/faculty" />
    3939          </tr>
    4040          <tr>
    4141            <td>Department Id:</td>
    42             <td><span tal:content="baseinfo/student/department" /></td>
     42            <td><span tal:content="baseinfo/department" /></td>
    4343          </tr>
    4444          <tr>
    4545            <td>Current Session:</td>
    46             <td><span tal:content="python:context.portal_vocabularies.sessions.get(baseinfo['student']['session'])" /></td>
     46            <td><span tal:content="python:context.portal_vocabularies.sessions.get(baseinfo['session'])" /></td>
    4747          </tr>
    4848          <tr>
    4949            <td>Current Study Level:</td>
    50             <td><span tal:content="python:context.portal_vocabularies.student_levels.get(baseinfo['student']['level'])" /></td>
     50            <td><span tal:content="python:context.portal_vocabularies.student_levels.get(baseinfo['level'])" /></td>
    5151          </tr>
    5252          <tr>
    5353            <td>Current Study Mode:</td>
    54             <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(baseinfo['student']['mode'])" /></td>
     54            <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(baseinfo['mode'])" /></td>
    5555          </tr>       
    56           <tr tal:define="verdict python:context.portal_vocabularies.verdicts.get(baseinfo['student']['verdict'])">
     56          <tr tal:define="verdict python:context.portal_vocabularies.verdicts.get(baseinfo['verdict'])">
    5757            <td>Current Verdict:</td>
    5858            <td><span tal:condition="verdict" tal:content="python:verdict.upper()" /></td>
Note: See TracChangeset for help on using the changeset viewer.