source: WAeUP_SRP/trunk/skins/waeup_student/course_registration_slip.pt @ 4249

Last change on this file since 4249 was 3980, checked in by Henrik Bettermann, 16 years ago

remove code from student_study_level (only id is used)
define min and max for semester attribute in course
fix course_registration_slip

File size: 5.3 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              >
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;
14          validated info/validated;
15          ">
16      <h3>Course Registration Slip for <span tal:content="info/level_str" /></h3>
17      <br />
18      <div tal:condition="validated">
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> -
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',
30            layout_id='student_application')"
31            />           
32      <table  cellpadding="2" cellspacing="0">
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>
54      </table>
55      <form action="." method="post" class="group">
56        <span tal:condition="info/carry_overs" tal:omit-tag="">
57          <h4>Carryover Courses</h4>
58          <br />
59          <table class="contentListing" width="100%" summary="content layout" id="folder_content">
60            <tr tal:repeat="row info/carry_overs"
61                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
62              <td width="74%" tal:content="row/title"></td>
63              <td align="center" width="10%" tal:content="row/code"></td>
64              <td align="center" width="2%">S<span tal:content="row/semester" /></td>
65              <td align="center" width="4%" tal:content="row/credits"></td>
66              <td align="center" width="10%">CO</td>
67            </tr>
68          </table>
69        </span>
70       
71        <br />
72       
73        <h4>Session Courses</h4>
74        <br />
75        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
76
77
78        <span tal:repeat="sem python:('1','2')">       
79        <tr><th colspan="3" tal:content="python: test(sem == '1','First Semester Courses', 'Second Semester Courses')" /></tr>           
80        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
81            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
82          <td width="74%" tal:content="row/title"></td>
83          <td align="center" width="10%" tal:content="row/code"></td>
84          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
85          <td align="center" width="4%" tal:content="row/credits"></td>
86          <td align="center" width="10%" tal:content="row/coe|nothing"></td>     
87        </tr>
88        </span>         
89       
90        <th colspan="3" tal:condition="info/normal3">Level Courses</th>               
91        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
92            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
93
94          <td width="74%" tal:content="row/title"></td>
95          <td align="center" width="10%" tal:content="row/code"></td>
96          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
97          <td align="center" width="4%" tal:content="row/credits"></td>
98          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
99         
100 
101        </tr>       
102       
103       
104          <tr>
105            <td width="84%" colspan="2" align="right">Total Credits:</td>
106            <td width="2%">&nbsp;</td>
107            <td align="center" width="4%" tal:content="info/total_credits"></td>
108            <td width="10%">&nbsp;</td>
109          </tr>
110        </table>
111      </form>
112      <span tal:condition="is_ca">   
113        <br /><br />
114        <table  width=100%>
115          <tr >
116            <td width=50%>Date:</td><td>Date:</td>
117          </tr>
118        </table>
119        <br /><br /><br /><br />
120        <table  width=100%>
121          <tr >
122            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black"> Student</td>
123            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Course Adviser</td>
124          </tr>
125        </table>
126      </span>             
127    </span>             
128    </span>             
129  </metal:main>
130</metal:body>
131 
Note: See TracBrowser for help on using the repository browser.