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

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

avoid error on anonymous view (in custom)

File size: 2.5 KB
RevLine 
[1737]1<metal:body use-macro="here/slip_template/macros/master">
[1292]2    <metal:main fill-slot="main"
3                tal:define="info context/getSessionResults">
[1884]4    <span tal:condition="not: info">
5      <span tal:content="here/illegal_view" />
6    </span>
7    <span tal:condition="info" tal:omit-tag="">
[1411]8      <h3>Session Results of <span tal:content="info/student/name" />
[1174]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>
[1429]23          <th>Sex:</th><td tal:content="info/sex" />                     
[1174]24        </tr>
25        <tr>
[1411]26          <th valign="top">Course of Study:</th><td tal:content="info/student_from_returning/Coursemajor" />                     
[1174]27        </tr>
28        <tr>
[1679]29          <th>Current Level:</th><td tal:content="info/level" />                     
[1174]30        </tr>
31      </table>
32       
33       <table>
34          <tr>
[1183]35            <th width="180px">Verdict:</th><td tal:content="info/verdict" />
[1174]36          </tr>
37          <tr> 
[1183]38            <th>Session:</th><td tal:content="info/session" />
[1179]39          </tr>
40          <tr> 
[1182]41            <th valign="top">GPA:</th><td> <span tal:content="info/gpa" /> (on the basis of the data below)  </td>
[1179]42          </tr>                   
[1174]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">
[1179]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>             
[1174]58            <tr>     
[1179]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
[1174]65          </tr>
66        </span>
[1179]67        <tr><td colspan="5">&nbsp;</td></tr>
[1174]68        </span>
69      </table>
[1884]70    </span>
[1174]71    </metal:main>
[1292]72</metal:body>
73
Note: See TracBrowser for help on using the repository browser.