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