[1380] | 1 | <metal:html> |
---|
[723] | 2 | <metal:body use-macro="here/waeup_content_master/macros/master"> |
---|
[1380] | 3 | <metal:block fill-slot="header" |
---|
| 4 | tal:define="global info context/getStudyLevelInfo; |
---|
[1513] | 5 | global is_so context/isSectionOfficer; |
---|
| 6 | global is_ca info/is_ca; |
---|
| 7 | global show_check_boxes info/show_check_boxes; |
---|
[1562] | 8 | global is_student info/is_student; |
---|
| 9 | global status_info info/status_info; |
---|
| 10 | global review_state info/review_state; |
---|
| 11 | global view_only info/view_only"> |
---|
[723] | 12 | <a href="" |
---|
| 13 | tal:attributes="href string:${here/academicsParent}"> |
---|
| 14 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
| 15 | Up one level |
---|
| 16 | </a> |
---|
[1513] | 17 | <div style="text-align: right" |
---|
| 18 | tal:condition="python:review_state == 'courses_validated'"> |
---|
[1516] | 19 | <a href="" target="slip" tal:attributes="href string:course_registration_slip" |
---|
[1513] | 20 | 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')"> |
---|
| 21 | <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> |
---|
[1516] | 22 | Course Registration Slip |
---|
[1513] | 23 | </a> |
---|
| 24 | |
---|
| 25 | </div> |
---|
| 26 | |
---|
[740] | 27 | <h3> |
---|
[1515] | 28 | <span tal:condition="python: is_so or is_ca"> |
---|
[1380] | 29 | <span tal:content="info/student/name" />: |
---|
| 30 | </span> |
---|
[1515] | 31 | <span tal:condition="is_student">My </span> |
---|
| 32 | |
---|
| 33 | Course Registration Form for <span tal:content="here/title_or_id" /> |
---|
[740] | 34 | </h3> |
---|
[1515] | 35 | |
---|
[723] | 36 | </metal:block> |
---|
| 37 | <metal:main fill-slot="main" tal:condition="python:1"> |
---|
[1656] | 38 | <form action="." method="post" class="group" onsubmit="return submit_once()"> |
---|
[1495] | 39 | <span tal:condition="info/carry_overs" tal:omit-tag=""> |
---|
[1515] | 40 | <h4>Carryover Courses</h4> |
---|
[1496] | 41 | <br /> |
---|
[1513] | 42 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
[1380] | 43 | <tr tal:repeat="row info/carry_overs" |
---|
| 44 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
[1513] | 45 | <td align="left" valign="middle" style="width: 5px;" |
---|
| 46 | tal:condition="show_check_boxes"> |
---|
[1380] | 47 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
[1494] | 48 | tal:define="id row/id" |
---|
[1380] | 49 | tal:attributes="value id; |
---|
| 50 | id python:'cb_' + id; |
---|
| 51 | checked python:id in info['choosen_ids'];" |
---|
| 52 | /> |
---|
| 53 | </td> |
---|
[1496] | 54 | <td width="78%" tal:content="row/title"></td> |
---|
| 55 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
| 56 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
| 57 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
| 58 | <td align="center" width="8%" tal:content="row/grade|string:"></td> |
---|
[1380] | 59 | </tr> |
---|
| 60 | </table> |
---|
[1515] | 61 | </span> |
---|
[1496] | 62 | <br /> |
---|
[1515] | 63 | <h4>Session Courses</h4> |
---|
| 64 | <br /> |
---|
[1557] | 65 | <div class="" tal:condition="not: info/normal"> |
---|
[1634] | 66 | <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font> |
---|
| 67 | <br /><br /> |
---|
[1557] | 68 | </div> |
---|
| 69 | <table class="contentListing" width="100%" id="folder_content" |
---|
| 70 | tal:condition="info/normal"> |
---|
[1380] | 71 | <tr tal:repeat="row info/normal" |
---|
| 72 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
[1513] | 73 | <td align="left" valign="middle" style="width: 5px;" |
---|
[1515] | 74 | tal:condition="show_check_boxes"> |
---|
[1380] | 75 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
[1494] | 76 | tal:define="id row/id" |
---|
[1380] | 77 | tal:attributes="value id; |
---|
| 78 | id python:'cb_' + id; |
---|
| 79 | checked python:id in info['choosen_ids'];" |
---|
| 80 | /> |
---|
| 81 | </td> |
---|
[1496] | 82 | <td width="78%" tal:content="row/title"></td> |
---|
| 83 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
| 84 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
| 85 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
| 86 | <td align="center" width="8%" tal:content="row/coe|nothing"></td> |
---|
[1380] | 87 | </tr> |
---|
[1482] | 88 | <tr> |
---|
[1515] | 89 | <td tal:condition="show_check_boxes" colspan="1"></td> |
---|
[1482] | 90 | <td colspan="1"></td> |
---|
[1496] | 91 | <th colspan="2">Total Credits:</th> |
---|
| 92 | <td align="center" width="2%" tal:content="info/credits_total"></td> |
---|
[1482] | 93 | </tr> |
---|
[1380] | 94 | </table> |
---|
[1515] | 95 | |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | |
---|
[1628] | 99 | <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2" |
---|
[723] | 100 | class="folderButtons"> |
---|
| 101 | <tr> |
---|
| 102 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 103 | <td align="left" valign="top"> |
---|
[1571] | 104 | <input type="submit" name="delete_course_result:method" value="Delete selected" |
---|
[1515] | 105 | class="destructive" i18n:attributes="value" |
---|
| 106 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 107 | ('Do you really want to delete selected courses?', )" |
---|
| 108 | /> |
---|
[1518] | 109 | <input type="submit" name="refresh_level:method" |
---|
| 110 | class="context" value="Update" |
---|
[1515] | 111 | /> |
---|
[1627] | 112 | |
---|
| 113 | |
---|
[1515] | 114 | <br /><br /> |
---|
[1557] | 115 | <input tal:condition="info/normal" |
---|
| 116 | type="submit" name="register_courses:method" |
---|
[1518] | 117 | class="context" value="Submit" /> |
---|
[1606] | 118 | |
---|
| 119 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
[1627] | 120 | tal:attributes="value string:study_level_view"/> |
---|
[1606] | 121 | |
---|
[1627] | 122 | <br /><br /> |
---|
| 123 | |
---|
| 124 | <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of |
---|
| 125 | prior deletion, i.e. already deleted courses will show up again. |
---|
| 126 | |
---|
| 127 | Please use this function only if you are sure that your faculty has added courses which are not yet on your course list. |
---|
| 128 | |
---|
[1515] | 129 | </td> |
---|
| 130 | </tr> |
---|
| 131 | </table> |
---|
| 132 | <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2" |
---|
| 133 | class="folderButtons"> |
---|
| 134 | <tr> |
---|
| 135 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 136 | <td align="left" valign="top"> |
---|
[1518] | 137 | <input type="button" value="Select all" class="context" |
---|
[1515] | 138 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
[1513] | 139 | i18n:attributes="value" |
---|
| 140 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 141 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 142 | /> |
---|
[1571] | 143 | <input type="submit" name="delete_course_result:method" value="Delete selected" |
---|
[1513] | 144 | class="destructive" i18n:attributes="value" |
---|
| 145 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
[1559] | 146 | ('Do you really want to delete the courses selected?', )" |
---|
[1513] | 147 | /> |
---|
[1515] | 148 | <input |
---|
[1513] | 149 | type="submit" name="refresh_level:method" |
---|
[1518] | 150 | class="context" value="Update" |
---|
[1513] | 151 | /> |
---|
[1515] | 152 | <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method" |
---|
[1518] | 153 | class="context" value="Submit" /> |
---|
[1515] | 154 | <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method" |
---|
[1518] | 155 | class="context" value="Validate" /> |
---|
[1515] | 156 | <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" |
---|
[1518] | 157 | class="context" value="Reject" /> |
---|
[1595] | 158 | |
---|
| 159 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
[1598] | 160 | tal:attributes="value string:study_level_view"/> |
---|
[1595] | 161 | <input type="hidden" name="action_after_reject" type="text" id="action_after_reject" |
---|
[1598] | 162 | tal:attributes="value string:contact_student_form"/> |
---|
[1515] | 163 | |
---|
[1513] | 164 | </td> |
---|
| 165 | </tr> |
---|
| 166 | </table> |
---|
[1515] | 167 | <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2" |
---|
[1513] | 168 | class="folderButtons"> |
---|
| 169 | <tr> |
---|
| 170 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 171 | <td align="left" valign="top"> |
---|
[1515] | 172 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
[1518] | 173 | type="button" value="Select all" class="context" |
---|
[723] | 174 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 175 | i18n:attributes="value" |
---|
| 176 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 177 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 178 | /> |
---|
[1515] | 179 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
[1571] | 180 | type="submit" name="delete_course_result:method" value="Delete selected" |
---|
[723] | 181 | class="destructive" i18n:attributes="value" |
---|
| 182 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
[1519] | 183 | ('Do you really want to delete the courses selected?', )" |
---|
[723] | 184 | /> |
---|
[1515] | 185 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
[1510] | 186 | type="submit" name="refresh_level:method" |
---|
[1518] | 187 | class="context" value="Update" |
---|
[723] | 188 | /> |
---|
[1515] | 189 | <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method" |
---|
[1518] | 190 | class="context" value="Submit" /> |
---|
[1515] | 191 | <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method" |
---|
[1518] | 192 | class="context" value="Validate" /> |
---|
[1515] | 193 | <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" |
---|
[1518] | 194 | class="context" value="Reject" /> |
---|
[1584] | 195 | |
---|
[1588] | 196 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
[1598] | 197 | tal:attributes="value string:study_level_view"/> |
---|
[1588] | 198 | <input type="hidden" name="action_after_reject" type="text" id="action_after_reject" |
---|
[1598] | 199 | tal:attributes="value string:contact_student_form"/> |
---|
[1588] | 200 | |
---|
[1515] | 201 | |
---|
[723] | 202 | </td> |
---|
| 203 | </tr> |
---|
| 204 | </table> |
---|
[1515] | 205 | |
---|
[723] | 206 | </form> |
---|
[1496] | 207 | <br /> |
---|
[1656] | 208 | <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()" |
---|
[1513] | 209 | tal:condition="show_check_boxes"> |
---|
[1496] | 210 | <table> |
---|
| 211 | <tr> |
---|
| 212 | <th>Course Id</th> |
---|
| 213 | <td><input type="text" name="course_id" |
---|
| 214 | tal:attributes="value request/course_id|nothing"/></td> |
---|
| 215 | <td colspan="2"> |
---|
| 216 | <input type="submit" name="add" |
---|
| 217 | class="context" value="Add Course" |
---|
| 218 | /> |
---|
[1590] | 219 | <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" |
---|
[1598] | 220 | tal:attributes="value string:study_level_view"/> |
---|
[1515] | 221 | </td> |
---|
[1496] | 222 | </table> |
---|
[1515] | 223 | </form> |
---|
[723] | 224 | </metal:main> |
---|
| 225 | </metal:body> |
---|
| 226 | </metal:html> |
---|
[1482] | 227 | |
---|