1 | <metal:body use-macro="here/main_template/macros/master"> |
---|
2 | <metal:main fill-slot="main" |
---|
3 | tal:define="info context/getStudyLevelInfo;"> |
---|
4 | <metal:block define-macro="edit_form"> |
---|
5 | |
---|
6 | <span tal:condition="not: info"> |
---|
7 | <span tal:content="here/illegal_view" /> |
---|
8 | </span> |
---|
9 | <span tal:condition="info"> |
---|
10 | <span tal:define= "is_so context/isSectionOfficer; |
---|
11 | is_ca info/is_ca; |
---|
12 | show_check_boxes info/show_check_boxes; |
---|
13 | is_current_level info/is_current_level; |
---|
14 | is_student info/is_student; |
---|
15 | status_info info/status_info; |
---|
16 | review_state info/review_state; |
---|
17 | view_only info/view_only"> |
---|
18 | <div style="text-align: right" |
---|
19 | tal:condition="python:review_state in ('courses_registered','courses_validated',) and is_current_level"> |
---|
20 | <a href="" target="slip" tal:attributes="href string:course_registration_slip" |
---|
21 | 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')"> |
---|
22 | <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> |
---|
23 | Course Registration Slip |
---|
24 | </a> |
---|
25 | </div> |
---|
26 | |
---|
27 | <div style="text-align: right" |
---|
28 | tal:condition="info/verdict"> |
---|
29 | <a href="" target="slip" tal:attributes="href string:new_session_results_slip" |
---|
30 | 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')"> |
---|
31 | <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> |
---|
32 | Session Results Slip |
---|
33 | </a> |
---|
34 | </div> |
---|
35 | |
---|
36 | |
---|
37 | <a href="" |
---|
38 | tal:attributes="href string:${here/academicsParent}"> |
---|
39 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
40 | Up one level |
---|
41 | </a> |
---|
42 | |
---|
43 | <h3> |
---|
44 | <span tal:condition="python: is_so or is_ca"> |
---|
45 | <span tal:content="info/student/name" />: |
---|
46 | </span> |
---|
47 | <span tal:condition="is_student">My </span> |
---|
48 | |
---|
49 | Course Registration Form for <span tal:content="here/Title" /> |
---|
50 | </h3> |
---|
51 | |
---|
52 | <br /> |
---|
53 | <table> |
---|
54 | <tr> |
---|
55 | <th width="220px">Session:</th> |
---|
56 | <td><span tal:content="info/session" /></td> |
---|
57 | </tr> |
---|
58 | <tr> |
---|
59 | <th>Total Credits:</th> |
---|
60 | <td tal:content="info/total_credits" /> |
---|
61 | </tr> |
---|
62 | <tr> |
---|
63 | <th>Verdict:</th> |
---|
64 | <td><span tal:content="info/verdict" /></td> |
---|
65 | </tr> |
---|
66 | <tr> |
---|
67 | <th>GPA:</th> |
---|
68 | <td><span tal:content="info/gpa" /></td> |
---|
69 | </tr> |
---|
70 | </table> |
---|
71 | |
---|
72 | |
---|
73 | <form action="." method="post" class="group" onsubmit="return submit_once()"> |
---|
74 | <span tal:condition="info/carry_overs" tal:omit-tag=""> |
---|
75 | <h3>Carryover Courses</h3> |
---|
76 | <br /> |
---|
77 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
78 | <tr tal:repeat="row info/carry_overs" |
---|
79 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
80 | |
---|
81 | <td align="left" valign="middle" style="width: 5%;" |
---|
82 | tal:condition="show_check_boxes"> |
---|
83 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
84 | tal:define="id row/id" |
---|
85 | tal:attributes="value id; |
---|
86 | id python:'cb_' + id; |
---|
87 | checked python:id in info['choosen_ids'];" |
---|
88 | /> |
---|
89 | </td> |
---|
90 | |
---|
91 | <td width="58%" tal:content="row/title"></td> |
---|
92 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
93 | <td align="center" width="2%"><span tal:content="row/semester" /></td> |
---|
94 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
95 | <td align="center" width="4%" tal:content="row/score"></td> |
---|
96 | <td align="center" width="2%" tal:content="row/grade"></td> |
---|
97 | <td align="center" width="2%" tal:content="row/weight"></td> |
---|
98 | <td align="center" width="10%" tal:content="row/coe|nothing"></td> |
---|
99 | |
---|
100 | <td tal:condition="python:info['submission_allowed']" align="center" width="5%"> </td> |
---|
101 | |
---|
102 | </tr> |
---|
103 | </table> |
---|
104 | </span> |
---|
105 | |
---|
106 | <div class="" tal:condition="python: info['data_missing'] and not info['spillover']"> |
---|
107 | <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font> |
---|
108 | <br /><br /> |
---|
109 | </div> |
---|
110 | |
---|
111 | <span tal:condition="not:info/data_missing" tal:omit-tag=""> |
---|
112 | <h3>Session Courses</h3> |
---|
113 | <br /> |
---|
114 | |
---|
115 | <table class="contentListing" width="100%" id="folder_content"> |
---|
116 | |
---|
117 | <span tal:repeat="sem python:('1','2')"> |
---|
118 | |
---|
119 | <tr> |
---|
120 | <th tal:attributes="colspan python: test(show_check_boxes,'2','1')" |
---|
121 | tal:content="python: test(sem == '1','First Semester', 'Second Semester')" /> |
---|
122 | <th align='center'></th> |
---|
123 | <th align='center'>sm</th> |
---|
124 | <th align='center'>cr</th> |
---|
125 | <th align='center'>sc</th> |
---|
126 | <th align='center'>gr</th> |
---|
127 | <th align='center'>wt</th> |
---|
128 | <th align='center'></th> |
---|
129 | <th align='center'></th> |
---|
130 | |
---|
131 | </tr> |
---|
132 | <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])" |
---|
133 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
134 | <td align="left" valign="middle" style="width: 5% ;" |
---|
135 | tal:condition="show_check_boxes"> |
---|
136 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
137 | tal:define="id row/id" |
---|
138 | tal:attributes="value id; |
---|
139 | id python:'cb_' + id; |
---|
140 | checked python:id in info['choosen_ids'];" |
---|
141 | /> |
---|
142 | </td> |
---|
143 | <td width="58%" tal:content="row/title"></td> |
---|
144 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
145 | <td align="center" width="2%"><span tal:content="row/semester" /></td> |
---|
146 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
147 | <td align="center" width="4%" tal:content="row/score"></td> |
---|
148 | <td align="center" width="2%" tal:content="row/grade"></td> |
---|
149 | <td align="center" width="2%" tal:content="row/weight"></td> |
---|
150 | <td align="center" width="10%" tal:content="row/coe|nothing"></td> |
---|
151 | |
---|
152 | <td tal:condition="python:info['submission_allowed']" width="5%" align="center"> |
---|
153 | <a href="edit" tal:attributes="href string:course_edit/${row/code}" |
---|
154 | target="edit" |
---|
155 | onclick="javascript:window.open('','edit','width=600, height=350, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> |
---|
156 | [edit] |
---|
157 | </a> |
---|
158 | </td> |
---|
159 | </tr> |
---|
160 | |
---|
161 | </span> |
---|
162 | |
---|
163 | <tr><th colspan="3" tal:condition="info/normal3"> Combined</th></tr> |
---|
164 | <tr tal:condition="info/normal3" tal:repeat="row info/normal3" |
---|
165 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
166 | <td align="left" valign="middle" style="width: 5%;" |
---|
167 | tal:condition="show_check_boxes"> |
---|
168 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
169 | tal:define="id row/id" |
---|
170 | tal:attributes="value id; |
---|
171 | id python:'cb_' + id; |
---|
172 | checked python:id in info['choosen_ids'];" |
---|
173 | /> |
---|
174 | </td> |
---|
175 | <td width="58%" tal:content="row/title"></td> |
---|
176 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
177 | <td align="center" width="2%"><span tal:content="row/semester" /></td> |
---|
178 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
179 | <td align="center" width="4%" tal:content="row/score"></td> |
---|
180 | <td align="center" width="2%" tal:content="row/grade"></td> |
---|
181 | <td align="center" width="2%" tal:content="row/weight"></td> |
---|
182 | <td align="center" width="10%" tal:content="row/coe|nothing"></td> |
---|
183 | |
---|
184 | <td tal:condition="python:info['submission_allowed']" width="5%" align="center"> |
---|
185 | <a href="edit" tal:attributes="href string:course_edit/${row/code}" |
---|
186 | target="edit" |
---|
187 | onclick="javascript:window.open('','edit','width=600, height=350, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> |
---|
188 | [edit] |
---|
189 | </a> |
---|
190 | </td> |
---|
191 | </tr> |
---|
192 | |
---|
193 | </table> |
---|
194 | </span> |
---|
195 | |
---|
196 | <br /> |
---|
197 | <table> |
---|
198 | <tr><th>sm:</th> <td>Semester</td></tr> |
---|
199 | <tr><th>cr:</th> <td>Credits</td></tr> |
---|
200 | <tr><th>sc:</th> <td>Score</td></tr> |
---|
201 | <tr><th>gr: </th> <td>Grade</td></tr> |
---|
202 | <tr><th>wt: </th> <td>Weight</td></tr> |
---|
203 | </table> |
---|
204 | |
---|
205 | <br /> |
---|
206 | |
---|
207 | <table tal:condition="python: is_student and info['submission_allowed'] and show_check_boxes" width="100%" cellspacing="0" cellpadding="2" |
---|
208 | class="folderButtons"> |
---|
209 | <tr> |
---|
210 | <td align="left" valign="top" rowspan="3"></td> |
---|
211 | <td align="left" valign="top"> |
---|
212 | <input type="submit" name="delete_course_result:method" value="Delete selected" |
---|
213 | class="destructive" i18n:attributes="value" |
---|
214 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
215 | ('Do you really want to delete selected courses?', )" |
---|
216 | /> |
---|
217 | <input tal:condition="python: 1" type="submit" name="refresh_level:method" |
---|
218 | class="context" value="Update" |
---|
219 | /> |
---|
220 | |
---|
221 | |
---|
222 | <br /><br /> |
---|
223 | <input tal:condition="not: info/credits_exceeded" |
---|
224 | type="submit" name="register_courses:method" |
---|
225 | class="context" value="Submit to Course Adviser" |
---|
226 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
227 | ('Do you really want to submit the course list? You will not be able to edit your data after submission.', )" /> |
---|
228 | <span tal:condition="info/credits_exceeded"> |
---|
229 | <font color="red"> <strong>Your total credits exceed <span tal:replace="info/max_credits" />!</strong></font> |
---|
230 | </span> |
---|
231 | |
---|
232 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
233 | tal:attributes="value string:study_level_view"/> |
---|
234 | |
---|
235 | <br /><br /> |
---|
236 | |
---|
237 | <span tal:condition="python: 1"> |
---|
238 | <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of |
---|
239 | prior deletion, i.e. already deleted courses will show up again. |
---|
240 | Please use this function only if you are sure that your faculty has added courses which are not yet on your course list. |
---|
241 | </span> |
---|
242 | <span tal:condition="python: 0"> |
---|
243 | <strong>Note:</strong> The 'Update' function has been temporarily disabled. |
---|
244 | </span> |
---|
245 | |
---|
246 | </td> |
---|
247 | </tr> |
---|
248 | </table> |
---|
249 | <table tal:condition="python: is_so and show_check_boxes" width="100%" cellspacing="0" cellpadding="2" |
---|
250 | class="folderButtons"> |
---|
251 | <tr> |
---|
252 | <td align="left" valign="top" rowspan="3"></td> |
---|
253 | <td align="left" valign="top"> |
---|
254 | <input type="button" value="Select all" class="context" |
---|
255 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
256 | i18n:attributes="value" |
---|
257 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
258 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
259 | /> |
---|
260 | <input type="submit" name="delete_course_result:method" value="Delete selected" |
---|
261 | class="destructive" i18n:attributes="value" |
---|
262 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
263 | ('Do you really want to delete the courses selected?', )" |
---|
264 | /> |
---|
265 | <input |
---|
266 | type="submit" name="refresh_level:method" |
---|
267 | class="context" value="Update" |
---|
268 | /> |
---|
269 | <input tal:condition="info/submission_allowed" type="submit" name="register_courses:method" |
---|
270 | class="context" value="Submit" /> |
---|
271 | <input tal:condition="info/validation_allowed" type="submit" name="validate_courses:method" |
---|
272 | class="context" value="Validate" /> |
---|
273 | <input tal:condition="info/rejection_allowed" type="submit" name="reject_courses:method" |
---|
274 | class="context" value="Reject" /> |
---|
275 | |
---|
276 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
277 | tal:attributes="value string:study_level_view"/> |
---|
278 | <input type="hidden" name="action_after_reject" type="text" id="action_after_reject" |
---|
279 | tal:attributes="value string:contact_student_form"/> |
---|
280 | |
---|
281 | </td> |
---|
282 | </tr> |
---|
283 | </table> |
---|
284 | <table tal:condition="python:is_ca and is_current_level" width="100%" cellspacing="0" cellpadding="2" |
---|
285 | class="folderButtons"> |
---|
286 | <tr> |
---|
287 | <td align="left" valign="top" rowspan="3"></td> |
---|
288 | <td align="left" valign="top"> |
---|
289 | <input tal:condition="python: info['submission_allowed']" |
---|
290 | type="button" value="Select all" class="context" |
---|
291 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
292 | i18n:attributes="value" |
---|
293 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
294 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
295 | /> |
---|
296 | <input tal:condition="python: info['submission_allowed']" |
---|
297 | type="submit" name="delete_course_result:method" value="Delete selected" |
---|
298 | class="destructive" i18n:attributes="value" |
---|
299 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
300 | ('Do you really want to delete the courses selected?', )" |
---|
301 | /> |
---|
302 | <input tal:condition="python: info['submission_allowed']" |
---|
303 | type="submit" name="refresh_level:method" |
---|
304 | class="context" value="Update" |
---|
305 | /> |
---|
306 | <input tal:condition="info/submission_allowed" type="submit" name="register_courses:method" |
---|
307 | class="context" value="Submit" /> |
---|
308 | <input tal:condition="info/validation_allowed" type="submit" name="validate_courses:method" |
---|
309 | class="context" value="Validate" /> |
---|
310 | <input tal:condition="info/rejection_allowed" type="submit" name="reject_courses:method" |
---|
311 | class="context" value="Reject" /> |
---|
312 | |
---|
313 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
314 | tal:attributes="value string:study_level_view"/> |
---|
315 | <input type="hidden" name="action_after_reject" type="text" id="action_after_reject" |
---|
316 | tal:attributes="value string:contact_student_form"/> |
---|
317 | |
---|
318 | |
---|
319 | </td> |
---|
320 | </tr> |
---|
321 | </table> |
---|
322 | |
---|
323 | </form> |
---|
324 | <br /> |
---|
325 | <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()" |
---|
326 | tal:condition="show_check_boxes"> |
---|
327 | <table> |
---|
328 | <tr> |
---|
329 | <th>Course Id</th> |
---|
330 | <td><input type="text" name="course_id" |
---|
331 | tal:attributes="value request/course_id|nothing"/></td> |
---|
332 | <td colspan="2"> |
---|
333 | <input type="submit" name="add" |
---|
334 | class="context" value="Add Course" |
---|
335 | /> |
---|
336 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
337 | tal:attributes="value string:study_level_view"/> |
---|
338 | </td> |
---|
339 | </table> |
---|
340 | </form> |
---|
341 | </span> |
---|
342 | </span> |
---|
343 | </metal:block> |
---|
344 | </metal:main> |
---|
345 | |
---|
346 | </metal:body> |
---|
347 | |
---|