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