Ignore:
Timestamp:
2 Jan 2007, 11:03:16 (18 years ago)
Author:
Henrik Bettermann
Message:

sessional result view and slip added
names imported into application object

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt

    r1172 r1174  
    120120  <span tal:condition="python:info['review_state']=='returning'">
    121121  <tr><td class="active">
    122     <a href="" tal:attributes="href string:${info/url}/personal_edit_form">
     122    <a href="" tal:attributes="href string:${info/url}/session_results_view">
    123123    Returning
    124124    </a>
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt

    r1169 r1174  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:main fill-slot="main">
    6       <div tal:condition="nothing" style="text-align: right">
    7         <a href="" target="slip" tal:attributes="href string:session_results_anon_slip?nr=${student/matric_no}"
    8            onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    9           <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    10           Session Result Slip
    11         </a>
    12       </div>
    136      <h3>Session Results of <span tal:content="student/Firstname" />
    147        <span tal:content="student/Middlename" />
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt

    r1171 r1174  
    1 <metal:html>
     1<metal:html tal:define="info context/getSessionResults">
    22  <metal:body use-macro="here/main_template/macros/master">
    33    <metal:main fill-slot="main">
    4       <div tal:condition="nothing" style="text-align: right">
    5         <a href="" target="slip" tal:attributes="href string:session_results_anon_slip?nr=${student/matric_no}"
     4      <div style="text-align: right">
     5        <a href="" target="slip" tal:attributes="href string:session_results_slip"
    66           onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    77          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    8           Session Result Slip
     8          Sessional Result Slip
    99        </a>
    1010      </div>
    11       <h3>Session Results of <span tal:content="student/Firstname" />
    12         <span tal:content="student/Middlename" />
    13         <span tal:content="student/Lastname" />
     11      <h3>Session Results of <span tal:content="info/student/Firstname" />
     12        <span tal:content="info/student/Middlename" />
     13        <span tal:content="info/student/Lastname" />
    1414      </h3>
    1515      <br />
    1616      <table>
    1717        <tr>
    18           <td width="180px"><span class="dlabel">Student ID</span>:
    19           </td>
     18          <th width="180px">Student ID:</th>
    2019          <td>
    21             <span tal:replace="python:here.aq_parent.aq_parent.id" />
     20            <span tal:replace="info/s_id" />
    2221          </td>     
    2322        </tr>     
    2423     
    2524        <tr>
    26           <th width="150px">Matriculation Number:</th><td tal:content="student/matric_no" />                     
     25          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
    2726        </tr>
    2827        <tr>
    29           <th>Sex:</th><td tal:content="student/Sex" />                     
     28          <th>Sex:</th><td tal:content="info/student/Sex" />                     
    3029        </tr>
    3130        <tr>
    32           <th>Course of Study:</th><td tal:content="student/Coursemajor" />                     
     31          <th>Course of Study:</th><td tal:content="info/student/Coursemajor" />                     
    3332        </tr>
    3433        <tr>
    35           <th>Level:</th><td tal:content="student/Level" />                     
     34          <th>Level:</th><td tal:content="info/student/Level" />                     
    3635        </tr>
    3736      </table>
     
    3938       <table>
    4039          <tr>
    41             <th width="150px">Verdict:</th><td tal:content="python:results[0][0]['Verdict']" />
     40            <th width="180px">Verdict:</th><td tal:content="python:info['results'][0][0]['Verdict']" />
    4241          </tr>
    4342          <tr> 
    44             <th>Session:</th><td tal:content="python:results[0][0]['Session']" />
     43            <th>Session:</th><td tal:content="python:info['results'][0][0]['Session']" />
    4544          </tr>       
    4645       </table>
     
    4948                     
    5049       <table>
    51          <span tal:repeat="semester results">
     50         <span tal:repeat="semester info/results">
    5251            <span tal:repeat="result semester">
    5352             <tr tal:condition="repeat/result/start">
Note: See TracChangeset for help on using the changeset viewer.