[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 | |
---|
| 38 | Course Registration Form for <span tal:content="here/title_or_id" /> |
---|
| 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')"> |
---|
| 48 | <td align="left" valign="middle" style="width: 5px;" |
---|
| 49 | tal:condition="show_check_boxes"> |
---|
| 50 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
| 51 | tal:define="id row/id" |
---|
| 52 | tal:attributes="value id; |
---|
| 53 | id python:'cb_' + id; |
---|
| 54 | checked python:id in info['choosen_ids'];" |
---|
| 55 | /> |
---|
| 56 | </td> |
---|
| 57 | <td width="78%" tal:content="row/title"></td> |
---|
| 58 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
| 59 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
| 60 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
| 61 | <td align="center" width="8%" tal:content="row/grade|string:"></td> |
---|
| 62 | </tr> |
---|
| 63 | </table> |
---|
| 64 | </span> |
---|
| 65 | <br /> |
---|
| 66 | <h4>Session Courses</h4> |
---|
| 67 | <br /> |
---|
| 68 | <div class="" tal:condition="not: info/normal"> |
---|
| 69 | <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font> |
---|
| 70 | <br /><br /> |
---|
| 71 | </div> |
---|
| 72 | <table class="contentListing" width="100%" id="folder_content" |
---|
| 73 | tal:condition="info/normal"> |
---|
| 74 | <tr tal:repeat="row info/normal" |
---|
| 75 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
| 76 | <td align="left" valign="middle" style="width: 5px;" |
---|
| 77 | tal:condition="show_check_boxes"> |
---|
| 78 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
| 79 | tal:define="id row/id" |
---|
| 80 | tal:attributes="value id; |
---|
| 81 | id python:'cb_' + id; |
---|
| 82 | checked python:id in info['choosen_ids'];" |
---|
| 83 | /> |
---|
| 84 | </td> |
---|
| 85 | <td width="78%" tal:content="row/title"></td> |
---|
| 86 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
| 87 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
| 88 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
| 89 | <td align="center" width="8%" tal:content="row/coe|nothing"></td> |
---|
[1861] | 90 | |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | <td> |
---|
| 95 | <a tal:condition="python:review_state == 'school_fee_paid'" href="edit" tal:attributes="href string:${row/code}/course_edit_form" |
---|
| 96 | target="edit" |
---|
| 97 | 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')"> |
---|
| 98 | [edit] |
---|
| 99 | </a> |
---|
| 100 | </td> |
---|
| 101 | |
---|
| 102 | |
---|
[1783] | 103 | </tr> |
---|
| 104 | <tr> |
---|
| 105 | <td tal:condition="show_check_boxes" colspan="1"></td> |
---|
| 106 | <td colspan="1"></td> |
---|
| 107 | <th colspan="2">Total Credits:</th> |
---|
| 108 | <td align="center" width="2%" tal:content="info/credits_total"></td> |
---|
| 109 | </tr> |
---|
| 110 | </table> |
---|
[1515] | 111 | |
---|
[1783] | 112 | |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2" |
---|
| 116 | class="folderButtons"> |
---|
| 117 | <tr> |
---|
| 118 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 119 | <td align="left" valign="top"> |
---|
| 120 | <input type="submit" name="delete_course_result:method" value="Delete selected" |
---|
| 121 | class="destructive" i18n:attributes="value" |
---|
| 122 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 123 | ('Do you really want to delete selected courses?', )" |
---|
[1380] | 124 | /> |
---|
[1874] | 125 | <input tal:condition="python: 1" type="submit" name="refresh_level:method" |
---|
[1783] | 126 | class="context" value="Update" |
---|
[1380] | 127 | /> |
---|
[1783] | 128 | |
---|
| 129 | |
---|
| 130 | <br /><br /> |
---|
[1872] | 131 | <input tal:condition="not: info/credits_exceeded" |
---|
[1783] | 132 | type="submit" name="register_courses:method" |
---|
| 133 | class="context" value="Submit" /> |
---|
[1874] | 134 | <span tal:condition="info/credits_exceeded"> |
---|
| 135 | <font color="red"> <strong>Your total credits exceed 50!</strong></font> |
---|
| 136 | </span> |
---|
[1783] | 137 | |
---|
| 138 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
| 139 | tal:attributes="value string:study_level_view"/> |
---|
| 140 | |
---|
| 141 | <br /><br /> |
---|
| 142 | |
---|
[1874] | 143 | <span tal:condition="python: 1"> |
---|
[1783] | 144 | <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of |
---|
| 145 | prior deletion, i.e. already deleted courses will show up again. |
---|
| 146 | Please use this function only if you are sure that your faculty has added courses which are not yet on your course list. |
---|
[1789] | 147 | </span> |
---|
[1874] | 148 | <span tal:condition="python: 0"> |
---|
[1789] | 149 | <strong>Note:</strong> The 'Update' function has been temporarily disabled. |
---|
| 150 | </span> |
---|
[1783] | 151 | |
---|
| 152 | </td> |
---|
| 153 | </tr> |
---|
| 154 | </table> |
---|
| 155 | <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2" |
---|
| 156 | class="folderButtons"> |
---|
| 157 | <tr> |
---|
| 158 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 159 | <td align="left" valign="top"> |
---|
| 160 | <input type="button" value="Select all" class="context" |
---|
| 161 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 162 | i18n:attributes="value" |
---|
| 163 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 164 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 165 | /> |
---|
| 166 | <input type="submit" name="delete_course_result:method" value="Delete selected" |
---|
| 167 | class="destructive" i18n:attributes="value" |
---|
| 168 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 169 | ('Do you really want to delete the courses selected?', )" |
---|
| 170 | /> |
---|
| 171 | <input |
---|
| 172 | type="submit" name="refresh_level:method" |
---|
| 173 | class="context" value="Update" |
---|
| 174 | /> |
---|
| 175 | <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method" |
---|
| 176 | class="context" value="Submit" /> |
---|
| 177 | <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method" |
---|
| 178 | class="context" value="Validate" /> |
---|
| 179 | <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" |
---|
| 180 | class="context" value="Reject" /> |
---|
| 181 | |
---|
| 182 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
| 183 | tal:attributes="value string:study_level_view"/> |
---|
| 184 | <input type="hidden" name="action_after_reject" type="text" id="action_after_reject" |
---|
| 185 | tal:attributes="value string:contact_student_form"/> |
---|
[1515] | 186 | |
---|
[1783] | 187 | </td> |
---|
| 188 | </tr> |
---|
| 189 | </table> |
---|
| 190 | <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2" |
---|
| 191 | class="folderButtons"> |
---|
| 192 | <tr> |
---|
| 193 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 194 | <td align="left" valign="top"> |
---|
| 195 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
| 196 | type="button" value="Select all" class="context" |
---|
| 197 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 198 | i18n:attributes="value" |
---|
| 199 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 200 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 201 | /> |
---|
| 202 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
| 203 | 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 tal:condition="python: review_state == 'school_fee_paid'" |
---|
| 209 | type="submit" name="refresh_level:method" |
---|
| 210 | class="context" value="Update" |
---|
| 211 | /> |
---|
| 212 | <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method" |
---|
| 213 | class="context" value="Submit" /> |
---|
| 214 | <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method" |
---|
| 215 | class="context" value="Validate" /> |
---|
| 216 | <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" |
---|
| 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"/> |
---|
| 223 | |
---|
[1515] | 224 | |
---|
[1783] | 225 | </td> |
---|
| 226 | </tr> |
---|
| 227 | </table> |
---|
[1515] | 228 | |
---|
[1783] | 229 | </form> |
---|
| 230 | <br /> |
---|
| 231 | <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()" |
---|
| 232 | tal:condition="show_check_boxes"> |
---|
| 233 | <table> |
---|
| 234 | <tr> |
---|
| 235 | <th>Course Id</th> |
---|
| 236 | <td><input type="text" name="course_id" |
---|
| 237 | tal:attributes="value request/course_id|nothing"/></td> |
---|
| 238 | <td colspan="2"> |
---|
| 239 | <input type="submit" name="add" |
---|
| 240 | class="context" value="Add Course" |
---|
| 241 | /> |
---|
| 242 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
| 243 | tal:attributes="value string:study_level_view"/> |
---|
| 244 | </td> |
---|
| 245 | </table> |
---|
| 246 | </form> |
---|
| 247 | </span> |
---|
| 248 | </span> |
---|
| 249 | </metal:main> |
---|
| 250 | </metal:body> |
---|
[1515] | 251 | |
---|