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

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

FCEOkene: show both course_registration_slip and examination_slip

course_registration_slip.pt: schow 'validated by system' if no validated_by string

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