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