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