source: WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt @ 1494

Last change on this file since 1494 was 1429, checked in by Henrik Bettermann, 18 years ago
  • Name, Level, MatricNo? and Sex are taken from the students_catalog
  • Course from returning_import
  • Verdict, GPA and Session from results_import
File size: 2.9 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="info context/getSessionResults">
4      <div tal:condition="nothing" style="text-align: right">
5        <a href="" target="slip" tal:attributes="href string:session_results_slip?nr=${info/student/matric_no}"
6           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')">
7          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
8          Session Result Slip
9        </a>
10      </div>
11      <h3>Session Results of <span tal:content="info/student/name" />
12      </h3>
13      <br />
14      <table>
15        <tr>
16          <th width="180px">Student ID:</th>
17          <td>
18            <span tal:replace="info/s_id" />
19          </td>     
20        </tr>     
21     
22        <tr>
23          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
24        </tr>
25        <tr>
26          <th>Sex:</th><td tal:content="info/sex" />                     
27        </tr>
28        <tr>
29          <th valign="top">Course of Study:</th><td tal:content="info/student_from_returning/Coursemajor" />                     
30        </tr>
31        <tr>
32          <th>Level:</th><td tal:content="info/level" />                     
33        </tr>
34      </table>
35       
36       <table>
37          <tr>
38            <th width="180px">Verdict:</th><td tal:content="info/verdict" />
39          </tr>
40          <tr> 
41            <th>Session:</th><td tal:content="info/session" />
42          </tr>
43          <tr> 
44            <th valign="top">GPA:</th><td> <span tal:content="info/gpa" /> (on the basis of the data below)  </td>
45          </tr>                   
46       </table>
47
48       <br />
49                     
50       <table>
51         <span tal:repeat="semester info/results">
52            <span tal:repeat="result semester">
53             <tr tal:condition="repeat/result/start">
54                <th colspan="2">
55                   <span tal:replace="python: test(repeat['semester'].index,'Second','First')" /> Semester
56                </th>
57                <td>Grade</td>
58                <td>Weight</td>
59                <td>Credits</td>
60             </tr>             
61            <tr>     
62            <td valign="top" width="80px" tal:content="result/CosCode" />
63            <td valign="top" tal:content="result/title" />
64            <td valign="top" width="50px" align="center" tal:content="result/GRADE" />
65            <td valign="top" width="50px" align="center" tal:content="result/WEIGHT" />
66            <td valign="top" width="50px" align="center" tal:content="result/credits" />
67
68          </tr>
69        </span>
70        <tr><td colspan="5">&nbsp;</td></tr>
71        </span>
72      </table>
73
74    </metal:main>
75</metal:body>
76
Note: See TracBrowser for help on using the repository browser.