source: WAeUP_SRP/base/skins/waeup_student/new_session_results_slip.pt @ 3102

Last change on this file since 3102 was 3090, checked in by Henrik Bettermann, 17 years ago

fix

File size: 4.5 KB
Line 
1<metal:body use-macro="here/slip_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="info context/getStudyLevelInfo">
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/student/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 width="180px">Verdict:</th><td tal:content="info/verdict" />
24        </tr>
25        <tr> 
26          <th>Session:</th><td tal:content="info/session" />
27        </tr>
28        <tr> 
29          <th valign="top">GPA:</th><td> <span tal:content="info/gpa" /> (on the basis of the data below)  </td>
30        </tr>                   
31       </table>
32
33      <span tal:condition="info/carry_overs" tal:omit-tag="">
34      <h3>Carryover Courses</h3>
35      <br />
36      <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">
37        <tr tal:repeat="row info/carry_overs"
38            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
39     
40          <td width="78%" tal:content="row/title"></td>
41          <td align="center" width="10%" tal:content="row/code"></td>
42          <td align="center" width="2%"><span tal:content="row/semester" /></td>
43          <td align="center" width="2%" tal:content="row/credits"></td>
44          <td align="center" width="4%" tal:content="row/score"></td>
45          <td align="center" width="2%" tal:content="row/grade"></td>
46          <td align="center" width="2%" tal:content="row/weight"></td>
47   
48        </tr>
49      </table>
50      </span>
51
52      <span tal:condition="not:info/data_missing" tal:omit-tag="">
53      <h3>Session Courses</h3>
54      <br />
55
56      <table class="contentListing" width="100%" id="folder_content">
57       
58        <span tal:repeat="sem python:('1','2')">       
59                   
60        <tr>
61        <th tal:attributes="colspan python: 1"
62            tal:content="python: test(sem == '1','First Semester', 'Second Semester')" />
63        <th align='center'></th>
64        <th align='center'>sm</th>
65        <th align='center'>cr</th>
66        <th align='center'>sc</th>
67        <th align='center'>gr</th>
68        <th align='center'>wt</th>
69           
70        </tr>               
71        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
72            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
73
74          <td width="78%" tal:content="row/title"></td>
75          <td align="center" width="10%" tal:content="row/code"></td>
76          <td align="center" width="2%"><span tal:content="row/semester" /></td>
77          <td align="center" width="2%" tal:content="row/credits"></td>
78          <td align="center" width="4%" tal:content="row/score"></td>
79          <td align="center" width="2%" tal:content="row/grade"></td>
80          <td align="center" width="2%" tal:content="row/weight"></td>
81        </tr>
82
83        </span>       
84       
85        <tr><th colspan="3" tal:condition="info/normal3"> Combined</th></tr>               
86        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
87            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
88
89          <td width="78%" tal:content="row/title"></td>
90          <td align="center" width="10%" tal:content="row/code"></td>
91          <td align="center" width="2%"><span tal:content="row/semester" /></td>
92          <td align="center" width="2%" tal:content="row/credits"></td>
93          <td align="center" width="4%" tal:content="row/score"></td>
94          <td align="center" width="2%" tal:content="row/grade"></td>
95          <td align="center" width="2%" tal:content="row/weight"></td>
96         
97       
98        </tr>       
99       
100      </table>
101      </span>
102     
103      <br />
104      <table>
105      <tr><th>sm:</th> <td>Semester</td></tr>
106      <tr><th>cr:</th> <td>Credits</td></tr>
107      <tr><th>sc:</th> <td>Score</td></tr>
108      <tr><th>gr: </th> <td>Grade</td></tr>
109      <tr><th>wt: </th> <td>Weight</td></tr>
110      </table>     
111                     
112    </span>
113    </metal:main>
114</metal:body>
115
Note: See TracBrowser for help on using the repository browser.