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