[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; |
---|
| 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"> |
---|
[1380] | 38 | <form action="." method="post" class="group"> |
---|
[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 /> |
---|
[1513] | 65 | <table class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
[1380] | 66 | <tr tal:repeat="row info/normal" |
---|
| 67 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
[1513] | 68 | <td align="left" valign="middle" style="width: 5px;" |
---|
[1515] | 69 | tal:condition="show_check_boxes"> |
---|
[1380] | 70 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
[1494] | 71 | tal:define="id row/id" |
---|
[1380] | 72 | tal:attributes="value id; |
---|
| 73 | id python:'cb_' + id; |
---|
| 74 | checked python:id in info['choosen_ids'];" |
---|
| 75 | /> |
---|
| 76 | </td> |
---|
[1496] | 77 | <td width="78%" tal:content="row/title"></td> |
---|
| 78 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
| 79 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
| 80 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
| 81 | <td align="center" width="8%" tal:content="row/coe|nothing"></td> |
---|
[1380] | 82 | </tr> |
---|
[1482] | 83 | <tr> |
---|
[1515] | 84 | <td tal:condition="show_check_boxes" colspan="1"></td> |
---|
[1482] | 85 | <td colspan="1"></td> |
---|
[1496] | 86 | <th colspan="2">Total Credits:</th> |
---|
| 87 | <td align="center" width="2%" tal:content="info/credits_total"></td> |
---|
[1482] | 88 | </tr> |
---|
[1380] | 89 | </table> |
---|
[1515] | 90 | |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2" |
---|
[723] | 95 | class="folderButtons"> |
---|
| 96 | <tr> |
---|
| 97 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 98 | <td align="left" valign="top"> |
---|
[1518] | 99 | <input type="submit" name="course_result_delete:method" value="Delete selected" |
---|
[1515] | 100 | class="destructive" i18n:attributes="value" |
---|
| 101 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 102 | ('Do you really want to delete selected courses?', )" |
---|
| 103 | /> |
---|
[1518] | 104 | <input type="submit" name="refresh_level:method" |
---|
| 105 | class="context" value="Update" |
---|
[1515] | 106 | /> |
---|
| 107 | <br /><br /> |
---|
| 108 | <input type="submit" name="register_courses:method" |
---|
[1518] | 109 | class="context" value="Submit" /> |
---|
[1515] | 110 | </td> |
---|
| 111 | </tr> |
---|
| 112 | </table> |
---|
| 113 | <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2" |
---|
| 114 | class="folderButtons"> |
---|
| 115 | <tr> |
---|
| 116 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 117 | <td align="left" valign="top"> |
---|
[1518] | 118 | <input type="button" value="Select all" class="context" |
---|
[1515] | 119 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
[1513] | 120 | i18n:attributes="value" |
---|
| 121 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 122 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 123 | /> |
---|
[1518] | 124 | <input type="submit" name="course_result_delete:method" value="Delete selected" |
---|
[1513] | 125 | class="destructive" i18n:attributes="value" |
---|
| 126 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 127 | ('really delete checked courses', )" |
---|
| 128 | /> |
---|
[1515] | 129 | <input |
---|
[1513] | 130 | type="submit" name="refresh_level:method" |
---|
[1518] | 131 | class="context" value="Update" |
---|
[1513] | 132 | /> |
---|
[1515] | 133 | <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method" |
---|
[1518] | 134 | class="context" value="Submit" /> |
---|
[1515] | 135 | <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method" |
---|
[1518] | 136 | class="context" value="Validate" /> |
---|
[1515] | 137 | <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" |
---|
[1518] | 138 | class="context" value="Reject" /> |
---|
[1515] | 139 | |
---|
[1513] | 140 | </td> |
---|
| 141 | </tr> |
---|
| 142 | </table> |
---|
[1515] | 143 | <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2" |
---|
[1513] | 144 | class="folderButtons"> |
---|
| 145 | <tr> |
---|
| 146 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 147 | <td align="left" valign="top"> |
---|
[1515] | 148 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
[1518] | 149 | type="button" value="Select all" class="context" |
---|
[723] | 150 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 151 | i18n:attributes="value" |
---|
| 152 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 153 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 154 | /> |
---|
[1515] | 155 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
[1518] | 156 | type="submit" name="course_result_delete:method" value="Delete selected" |
---|
[723] | 157 | class="destructive" i18n:attributes="value" |
---|
| 158 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
[1519] | 159 | ('Do you really want to delete the courses selected?', )" |
---|
[723] | 160 | /> |
---|
[1515] | 161 | <input tal:condition="python: review_state == 'school_fee_paid'" |
---|
[1510] | 162 | type="submit" name="refresh_level:method" |
---|
[1518] | 163 | class="context" value="Update" |
---|
[723] | 164 | /> |
---|
[1515] | 165 | <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method" |
---|
[1518] | 166 | class="context" value="Submit" /> |
---|
[1515] | 167 | <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method" |
---|
[1518] | 168 | class="context" value="Validate" /> |
---|
[1515] | 169 | <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" |
---|
[1518] | 170 | class="context" value="Reject" /> |
---|
[1515] | 171 | |
---|
[723] | 172 | </td> |
---|
| 173 | </tr> |
---|
| 174 | </table> |
---|
[1515] | 175 | |
---|
[723] | 176 | </form> |
---|
[1496] | 177 | <br /> |
---|
[1515] | 178 | <form action="add_course_result" method="post" class="group" |
---|
[1513] | 179 | tal:condition="show_check_boxes"> |
---|
[1496] | 180 | <table> |
---|
| 181 | <tr> |
---|
| 182 | <th>Course Id</th> |
---|
| 183 | <td><input type="text" name="course_id" |
---|
| 184 | tal:attributes="value request/course_id|nothing"/></td> |
---|
| 185 | <td tal:condition="request/error|nothing" |
---|
| 186 | tal:content="request/error" /> |
---|
| 187 | <td colspan="2"> |
---|
| 188 | <input type="submit" name="add" |
---|
| 189 | class="context" value="Add Course" |
---|
| 190 | /> |
---|
[1515] | 191 | </td> |
---|
[1496] | 192 | </table> |
---|
[1515] | 193 | </form> |
---|
[723] | 194 | </metal:main> |
---|
| 195 | </metal:body> |
---|
| 196 | </metal:html> |
---|
[1482] | 197 | |
---|