source: WAeUP_SRP/base/skins/waeup_student/course_registration_slip.pt @ 3394

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

this works for Okene, must be tested for Benin also

File size: 5.3 KB
RevLine 
[2630]1  <metal:body use-macro="here/slip_template/macros/master">
[1883]2  <metal:main fill-slot="main"
3              tal:define="info context/getStudyLevelInfo;"
4              >
5    <span tal:condition="not: info">
6      <span tal:content="here/illegal_view" />
7    </span>
8    <span tal:condition="info" tal:omit-tag="">
9      <span tal:omit-tag=""
10          tal:define="is_so info/is_so;
11          is_ca info/is_ca;
12          show_check_boxes info/show_check_boxes;
13          is_student info/is_student;
[2760]14          validated info/validated;
15          ">
[2031]16      <h3>Course Registration Slip for <span tal:content="here/title_or_id" /></h3>
[1516]17      <br />
[1575]18      <div tal:condition="validated">
[1897]19        - validated by <span tal:condition="info/doc/validated_by|nothing" tal:omit-tag="">
20          <span tal:replace="info/doc/validated_by" /> on <span tal:replace="python:info['doc'].validation_date.aCommon()" />
21        </span> -
[1575]22      </div>
23      <div tal:condition="not: validated">
24        - not yet validated by Course Adviser -
25      </div>
26      <br />
27      <span tal:omit-tag=""
28            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
29            layout_mode='view_info',
[2579]30            layout_id='student_application')"
[1575]31            />           
32      <table  cellpadding="2" cellspacing="0">
[1883]33        <tr>
34          <td valign="top" width="180px"><span class="dlabel">Faculty Id</span>:
35          </td>
36          <td>
37            <span tal:content="info/student/faculty" />
38          </td>     
39        </tr>
40        <tr>
41          <td valign="top"><span class="dlabel">Department Id</span>:
42          </td>
43          <td>
44            <span tal:content="info/student/department" />
45          </td>     
46        </tr>
47        <tr>
48          <td valign="top"><span class="dlabel">Study Course Id</span>:
49          </td>
50          <td>
51            <span tal:content="info/student/course" />
52          </td>     
53        </tr>
[1516]54      </table>
55      <form action="." method="post" class="group">
56        <span tal:condition="info/carry_overs" tal:omit-tag="">
[1883]57          <h4>Carryover Courses</h4>
58          <br />
[2489]59          <table class="contentListing" width="100%" summary="content layout" id="folder_content">
[1883]60            <tr tal:repeat="row info/carry_overs"
61                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[2630]62              <td width="74%" tal:content="row/title"></td>
[2489]63              <td align="center" width="10%" tal:content="row/code"></td>
64              <td align="center" width="2%">S<span tal:content="row/semester" /></td>
[2630]65              <td align="center" width="4%" tal:content="row/credits"></td>
66              <td align="center" width="10%">CO</td>
[1883]67            </tr>
68          </table>
[1516]69        </span>
[2630]70       
71        <br />
72       
[1516]73        <h4>Session Courses</h4>
74        <br />
75        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
[2606]76
77
78       <span tal:repeat="sem python:('1','2')">       
79                   
[2649]80        <tr><th colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" /></tr>           
[2606]81        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
82            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[2630]83          <td width="74%" tal:content="row/title"></td>
[2606]84          <td align="center" width="10%" tal:content="row/code"></td>
85          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
[2630]86          <td align="center" width="4%" tal:content="row/credits"></td>
[2757]87          <td align="center" width="10%" tal:content="row/coe|nothing"></td>     
[2606]88        </tr>
89       
90       
91        <th colspan="3" tal:condition="info/normal3"> Combined</th>               
92        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
93            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[2630]94
95          <td width="74%" tal:content="row/title"></td>
[2606]96          <td align="center" width="10%" tal:content="row/code"></td>
97          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
[2630]98          <td align="center" width="4%" tal:content="row/credits"></td>
[2606]99          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
100         
[2757]101 
[2606]102        </tr>       
103       
104        </span>       
[1516]105          <tr>
[2630]106            <td width="84%" colspan="2" align="right">Total Credits:</td>
[2489]107            <td width="2%">&nbsp;</td>
[2757]108            <td align="center" width="4%" tal:content="info/total_credits"></td>
[2630]109            <td width="10%">&nbsp;</td>
[1516]110          </tr>
111        </table>
112      </form>
[1883]113      <span tal:condition="is_ca">   
114        <br /><br />
115        <table  width=100%>
116          <tr >
117            <td width=50%>Date:</td><td>Date:</td>
118          </tr>
119        </table>
120        <br /><br /><br /><br />
121        <table  width=100%>
122          <tr >
123            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black"> Student</td>
124            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Course Adviser</td>
125          </tr>
126        </table>
127      </span>             
128    </span>             
129    </span>             
130  </metal:main>
[1575]131</metal:body>
[1516]132 
Note: See TracBrowser for help on using the repository browser.