source: WAeUP_SRP/trunk/skins/waeup_futminna/transcript_view.pt @ 16651

Last change on this file since 16651 was 5458, checked in by Henrik Bettermann, 14 years ago

implement test version of transcript view and slip for FUT Minna

File size: 4.0 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2  <metal:main fill-slot="main"
3          tal:define="info context/getTranscriptInfo;">
4  <metal:block define-macro="edit_form">   
5             
6    <span tal:condition="not: info">
7      <span tal:content="here/illegal_view" />
8    </span>
9   
10    <span tal:condition="info">
11    <span tal:define= "is_so context/isSectionOfficer;
12                       is_ca context/isCourseAdviser;
13                       is_student info/is_student;
14                       with_score not: info/without_score|nothing;
15                       ">       
16         
17   
18    <a href=""
19       tal:attributes="href string:${here/academicsParent}">
20      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
21      Up one level
22    </a>
23
24    <div style="text-align: right">
25    <a href="" target="slip" tal:attributes="href string:transcript_slip"
26        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')">
27        <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
28        Transcript Slip
29    </a>
30    </div>     
31
32    <h3>
33      <span tal:condition="python: is_so or is_ca">
34        <span tal:content="info/student_record/name" />:
35      </span>
36      <span tal:condition="is_student">My </span> Transcript     
37      <br />
38    </h3>
39             
40      <span tal:repeat="details info/year_details">
41      <span tal:define="year_courses info/year_courses;
42                        year python:year_courses[details['year']]"
43            tal:condition="python:len(year)">
44     
45      <br />
46     
47      <h3> Year <span tal:replace="details/year" />  (Session <span tal:replace="details/session" />)</h3>
48      <br />
49     
50      <table  class="contentListing" width="100%" id="folder_content">
51        <tr>
52        <th style='text-align:center'></th>
53        <th style='text-align:center'>session</th>
54        <th style='text-align:center'>level</th>
55        <th style='text-align:center'>semester</th>
56        <th style='text-align:center'>credits</th>
57        <th tal:condition="with_score" style='text-align:center'>score</th>
58        <th style='text-align:center'>grade</th>
59        <th style='text-align:center'>weight</th>
60        <th style='text-align:center'></th>       
61        </tr> 
62                     
63        <tr tal:repeat="row year"
64            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
65          <td style='text-align:center' tal:content="row/code"></td>
66          <td style='text-align:center' tal:content="row/session_id"></td>
67          <td style='text-align:center' tal:content="row/level_id"></td>                   
68          <td style='text-align:center'><span tal:content="row/semester" /></td>
69          <td style='text-align:center' tal:content="row/credits"></td>
70          <td tal:condition="with_score" style='text-align:center'  tal:content="row/score"></td>
71          <td style='text-align:center' tal:content="row/grade"></td>
72          <td style='text-align:center' tal:content="row/weight"></td>
73          <td style='text-align:center' tal:content="row/coe|nothing"></td>
74        </tr>
75      </table>
76
77        <br />
78        <table>
79          <tr tal:condition="details/total_credits" >
80            <th width='200pt'>Total Credits:</th>
81            <td tal:content="details/total_credits" />
82          </tr>
83          <tr tal:condition="details/gpa">
84            <th>GPA:</th>
85            <td><span tal:content="details/gpa" /></td>
86          </tr>
87          <tr>
88            <th>Cumulative Total Credits:</th>
89            <td tal:content="details/c_total_credits" />
90          </tr>
91          <tr tal:condition="details/cgpa">
92            <th>CGPA:</th>
93            <td><span tal:content="details/cgpa" /></td>
94          </tr>         
95        </table>     
96
97      </span>
98      </span>
99
100    <br />
101  </span>
102  </span>       
103  </metal:block>   
104  </metal:main>
105
106</metal:body>
107
Note: See TracBrowser for help on using the repository browser.