source: WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt @ 1175

Last change on this file since 1175 was 1174, checked in by Henrik Bettermann, 18 years ago

sessional result view and slip added
names imported into application object

File size: 2.7 KB
Line 
1<metal:html tal:define="info context/getSessionResults">
2  <metal:body use-macro="here/main_template/macros/master">
3    <metal:main fill-slot="main">
4      <div style="text-align: right">
5        <a href="" target="slip" tal:attributes="href string:session_results_slip"
6           onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
7          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
8          Sessional Result Slip
9        </a>
10      </div>
11      <h3>Session Results of <span tal:content="info/student/Firstname" />
12        <span tal:content="info/student/Middlename" />
13        <span tal:content="info/student/Lastname" />
14      </h3>
15      <br />
16      <table>
17        <tr>
18          <th width="180px">Student ID:</th>
19          <td>
20            <span tal:replace="info/s_id" />
21          </td>     
22        </tr>     
23     
24        <tr>
25          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
26        </tr>
27        <tr>
28          <th>Sex:</th><td tal:content="info/student/Sex" />                     
29        </tr>
30        <tr>
31          <th>Course of Study:</th><td tal:content="info/student/Coursemajor" />                     
32        </tr>
33        <tr>
34          <th>Level:</th><td tal:content="info/student/Level" />                     
35        </tr>
36      </table>
37       
38       <table>
39          <tr>
40            <th width="180px">Verdict:</th><td tal:content="python:info['results'][0][0]['Verdict']" />
41          </tr>
42          <tr> 
43            <th>Session:</th><td tal:content="python:info['results'][0][0]['Session']" />
44          </tr>       
45       </table>
46
47       <br />
48                     
49       <table>
50         <span tal:repeat="semester info/results">
51            <span tal:repeat="result semester">
52             <tr tal:condition="repeat/result/start">
53              <th colspan="5">
54                <span tal:replace="python: test(repeat['semester'].index,'Second','First')" /> Semester
55              </th>
56             </tr>
57            <tr>     
58            <td width="80px" tal:content="result/CosCode" />
59            <td tal:content="result/title" />
60            <td width="50px" align="center" tal:content="result/GRADE" />
61          </tr>
62        </span>
63        </span>
64      </table>
65      <br />
66      <form action="" method="post"
67            tal:attributes="action string:${context/portal_url}/personal_edit_form">
68        <input type="submit"
69               class="standalone"
70               value="Continue to Personal Data Page!"
71               name="submit" />
72      </form>
73    </metal:main>
74  </metal:body>
75</metal:html>
Note: See TracBrowser for help on using the repository browser.