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

Last change on this file since 5162 was 4305, checked in by Henrik Bettermann, 16 years ago

replace deprecated align attribute (right and center)

File size: 2.2 KB
Line 
1<metal:body use-macro="here/slip_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="info context/getSessionResults">
4    <span tal:condition="not: info">
5      <span tal:content="here/illegal_view" />
6    </span>
7    <span tal:condition="info" tal:omit-tag="">
8      <h3>Session Results of <span tal:content="info/student/name" />
9      </h3>
10      <br />
11      <table>
12        <tr>
13          <th width="180px">Student ID:</th>
14          <td>
15            <span tal:replace="info/s_id" />
16          </td>     
17        </tr>     
18     
19        <tr>
20          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
21        </tr>
22        <tr>
23          <th>Level:</th><td tal:content="info/level" />                     
24        </tr>
25        <tr>
26          <th width="180px">Verdict:</th><td tal:content="info/verdict" />
27        </tr>
28        <tr> 
29          <th>Session:</th><td tal:content="info/session" />
30        </tr>
31        <tr> 
32          <th valign="top">GPA:</th><td> <span tal:content="info/gpa" /> (on the basis of the data below)  </td>
33        </tr>                   
34       </table>
35
36       <br />
37                     
38       <table>
39         <span tal:repeat="semester info/results">
40            <span tal:repeat="result semester">
41             <tr tal:condition="repeat/result/start">
42                <th colspan="2">
43                   <span tal:replace="python: test(repeat['semester'].index,'Second','First')" /> Semester
44                </th>
45                <td>Grade</td>
46                <td>Weight</td>
47                <td>Credits</td>
48             </tr>             
49            <tr>     
50            <td valign="top" width="80px" tal:content="result/CosCode" />
51            <td valign="top" tal:content="result/title" />
52            <td valign="top" width="50px" style='text-align:center' tal:content="result/GRADE" />
53            <td valign="top" width="50px" style='text-align:center' tal:content="result/WEIGHT" />
54            <td valign="top" width="50px" style='text-align:center' tal:content="result/credits" />
55
56          </tr>
57        </span>
58        <tr><td colspan="5">&nbsp;</td></tr>
59        </span>
60      </table>
61    </span>
62    </metal:main>
63</metal:body>
64
Note: See TracBrowser for help on using the repository browser.