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

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

do not show score in Benin

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