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

Last change on this file since 1962 was 1884, checked in by joachim, 17 years ago

avoid error on anonymous view (in custom)

File size: 2.5 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>Sex:</th><td tal:content="info/sex" />                     
24        </tr>
25        <tr>
26          <th valign="top">Course of Study:</th><td tal:content="info/student_from_returning/Coursemajor" />                     
27        </tr>
28        <tr>
29          <th>Current Level:</th><td tal:content="info/level" />                     
30        </tr>
31      </table>
32       
33       <table>
34          <tr>
35            <th width="180px">Verdict:</th><td tal:content="info/verdict" />
36          </tr>
37          <tr> 
38            <th>Session:</th><td tal:content="info/session" />
39          </tr>
40          <tr> 
41            <th valign="top">GPA:</th><td> <span tal:content="info/gpa" /> (on the basis of the data below)  </td>
42          </tr>                   
43       </table>
44
45       <br />
46                     
47       <table>
48         <span tal:repeat="semester info/results">
49            <span tal:repeat="result semester">
50             <tr tal:condition="repeat/result/start">
51                <th colspan="2">
52                   <span tal:replace="python: test(repeat['semester'].index,'Second','First')" /> Semester
53                </th>
54                <td>Grade</td>
55                <td>Weight</td>
56                <td>Credits</td>
57             </tr>             
58            <tr>     
59            <td valign="top" width="80px" tal:content="result/CosCode" />
60            <td valign="top" tal:content="result/title" />
61            <td valign="top" width="50px" align="center" tal:content="result/GRADE" />
62            <td valign="top" width="50px" align="center" tal:content="result/WEIGHT" />
63            <td valign="top" width="50px" align="center" tal:content="result/credits" />
64
65          </tr>
66        </span>
67        <tr><td colspan="5">&nbsp;</td></tr>
68        </span>
69      </table>
70    </span>
71    </metal:main>
72</metal:body>
73
Note: See TracBrowser for help on using the repository browser.