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