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