source: WAeUP_SRP/trunk/skins/waeup_fceokene/study_level_view.pt @ 5686

Last change on this file since 5686 was 5569, checked in by Henrik Bettermann, 14 years ago

FCEOkene: show both course_registration_slip and examination_slip

course_registration_slip.pt: schow 'validated by system' if no validated_by string

File size: 16.9 KB
Line 
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    <a href=""
25       tal:attributes="href string:${here/academicsParent}">
26      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
27      Up one level
28    </a>
29   
30    <div style="text-align: right"
31         tal:condition="rejection_allowed">
32    <a href="" target="slip" tal:attributes="href string:course_registration_slip"
33        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')">
34        <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
35        Course Registration Slip
36    </a>
37    </div>   
38
39    <div style="text-align: right"
40         tal:condition="rejection_allowed">
41    <a href="" target="slip" tal:attributes="href string:examination_slip"
42        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')">
43        <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
44        Examination Clearance Slip
45    </a>
46    </div>
47   
48    <div style="text-align: right"
49         tal:condition="info/gpa">
50    <a href="" target="slip" tal:attributes="href string:new_session_results_slip"
51        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')">
52        <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
53        Session Results Slip
54    </a>
55    </div>   
56         
57    <h3>
58      <span tal:condition="python: is_so or is_ca">
59        <span tal:content="info/student/name" />:
60      </span>
61      <span tal:condition="is_student">My </span>
62     
63      Course Registration Form for <span tal:content="info/level_str" />
64    </h3>
65   
66        <br />
67        <table>
68          <tr>
69            <th  width="220px">Session:</th>
70            <td><span tal:content="info/session" /></td>
71          </tr>
72          <tr>
73            <th>Total Credits:</th>
74            <td tal:content="info/total_credits" />
75          </tr>
76          <tr tal:condition="has_verdict">
77            <th>Verdict:</th>
78            <td><span tal:content="info/verdict" /></td>
79          </tr>     
80          <tr tal:condition="info/gpa">
81            <th>GPA:</th>
82            <td><span tal:content="info/gpa" /></td>
83          </tr>
84        </table>           
85   
86             
87    <form action="." method="post" class="group" onsubmit="return submit_once()">
88      <span tal:condition="info/carry_overs" tal:omit-tag="">
89      <h3>Carryover Courses</h3>
90      <br />
91      <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">
92
93        <tr>
94        <th tal:attributes="colspan python: test(show_check_boxes,'2','1')">Both Semesters</th>
95        <th style='text-align:center'></th>
96        <th style='text-align:center'>sm</th>
97        <th style='text-align:center'>cr</th>
98        <th tal:condition="with_score" style='text-align:center'>sc</th>
99        <th tal:condition="with_cascore" style='text-align:center'>ca</th>
100        <th style='text-align:center'>gr</th>
101        <th style='text-align:center'>wt</th>
102        <th style='text-align:center'></th>
103        <th tal:condition="submission_allowed" style='text-align:center'></th>   
104           
105        </tr>         
106        <tr tal:repeat="row info/carry_overs"
107            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
108     
109          <td align="left" valign="middle" style="width: 5%;"
110              tal:condition="show_check_boxes">
111            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
112                   tal:define="id row/id"
113                   tal:attributes="value id;
114                   id python:'cb_' + id;
115                   checked python:id in info['choosen_ids'];"
116                   />
117          </td>
118
119          <td width="58%" tal:content="row/title"></td>
120          <td style='text-align:center' width="10%" tal:content="row/code"></td>
121          <td style='text-align:center' width="2%"><span tal:content="row/semester" /></td>
122          <td style='text-align:center' width="2%" tal:content="row/credits"></td>
123          <td tal:condition="with_score" style='text-align:center' width="4%" tal:content="row/score"></td>
124          <td tal:condition="with_cascore" style='text-align:center' width="4%" tal:content="row/ca1"></td>
125          <td style='text-align:center' width="2%" tal:content="row/grade"></td>
126          <td style='text-align:center' width="2%" tal:content="row/weight"></td>
127          <td style='text-align:center' width="10%" tal:content="row/coe|nothing"></td>
128         
129          <td tal:condition="submission_allowed" style='text-align:center' width="5%">&nbsp;</td>
130       
131        </tr>
132      </table>
133      </span>
134
135      <div class="" tal:condition="python: False and info['data_missing'] and not info['spillover']">
136        <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font>
137        <br /><br />
138      </div>
139       
140      <span tal:condition="not:info/data_missing" tal:omit-tag="">
141      <h3>Session Courses</h3>
142      <br />
143
144      <table class="contentListing" width="100%" id="folder_content">
145       
146        <span tal:repeat="sem python:(('1','First Semester Courses','normal1'),('2','Second Semester Courses','normal2'),('3','Level Courses','normal3'))">       
147                   
148        <tr tal:condition="python:info[sem[2]]">
149        <th tal:attributes="colspan python: test(show_check_boxes,'2','1')"
150            tal:content="python:sem[1]" />
151        <th style='text-align:center'></th>
152        <th style='text-align:center'>sm</th>
153        <th style='text-align:center'>cr</th>
154        <th tal:condition="with_score" style='text-align:center'>sc</th>
155        <th tal:condition="with_cascore" style='text-align:center'>ca</th>
156        <th style='text-align:center'>gr</th>
157        <th style='text-align:center'>wt</th>
158        <th style='text-align:center'></th>
159        <th tal:condition="submission_allowed" style='text-align:center'></th>   
160           
161        </tr>               
162        <tr tal:repeat="row python:info[sem[2]]"
163           
164            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
165          <td align="left" valign="middle" style="width: 5%;"
166             tal:condition="show_check_boxes">
167            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
168                   tal:define="id row/id"
169                   tal:attributes="value id;
170                   id python:'cb_' + id;
171                   checked python:id in info['choosen_ids'];"
172                   />
173          </td>
174          <td width="58%" tal:content="row/title"></td>
175          <td style='text-align:center' width="10%" tal:content="row/code"></td>
176          <td style='text-align:center' width="2%"><span tal:content="row/semester" /></td>
177          <td style='text-align:center' width="2%" tal:content="row/credits"></td>
178          <td tal:condition="with_score" style='text-align:center' width="4%" tal:content="row/score"></td>
179          <td tal:condition="with_cascore" style='text-align:center' width="4%" tal:content="row/ca1"></td>
180          <td style='text-align:center' width="2%" tal:content="row/grade"></td>
181          <td style='text-align:center' width="2%" tal:content="row/weight"></td>
182          <td style='text-align:center' width="10%" tal:content="row/coe|nothing"></td>
183         
184          <td tal:condition="submission_allowed" width="5%" style='text-align:center'>
185            <a href="edit" tal:attributes="href string:course_edit/${row/code}"
186            target="edit_course_result"
187            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')">
188            [edit]
189            </a>
190          </td>         
191        </tr>
192        <tr><td>&nbsp;</td></tr>
193        </span>       
194       
195      </table>
196      </span>
197     
198      <br />
199      <table>
200      <tr><th>sm:</th> <td>Semester</td></tr>
201      <tr><th>cr:</th> <td>Credits</td></tr>
202      <tr tal:condition="with_score"><th>sc:</th> <td>Score</td></tr>
203      <tr tal:condition="with_cascore"><th>ca:</th> <td>CA Score</td></tr>
204      <tr><th>gr: </th> <td>Grade</td></tr>
205      <tr><th>wt: </th> <td>Weight</td></tr>
206      </table>     
207         
208      <br />
209     
210      <table tal:condition="python: is_student and show_check_boxes" width="100%" cellspacing="0" cellpadding="2"
211             class="folderButtons">
212        <tr>
213          <td align="left" valign="top" rowspan="3"></td>
214          <td align="left" valign="top">
215              <input type="submit" name="delete_course_result:method" value="Delete selected"
216                     class="destructive" i18n:attributes="value"
217                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
218                     ('Do you really want to delete selected courses?', )"
219                     />
220              <input tal:condition="python: 1" type="submit" name="refresh_level:method"
221                     class="context" value="Update"
222                     />
223                   
224                     
225              <br /><br />
226              <input tal:condition="not: info/credits_exceeded"
227                     type="submit" name="register_courses:method"
228                     class="context" value="Submit to Course Adviser"
229                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
230                     ('Do you really want to submit the course list? You will not be able to edit your data after submission.', )" />
231              <span tal:condition="info/credits_exceeded">
232                  <font color="red"> <strong>Your total credits exceed <span tal:replace="info/max_credits" />!</strong></font>
233              </span>
234                     
235              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
236                     tal:attributes="value study_level_view"/> 
237                     
238              <br /><br />
239             
240              <span tal:condition="python: 1">
241              <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of
242              prior deletion, i.e. already deleted courses will show up again.
243              Please use this function only if you are sure that your faculty has added courses which are not yet on your course list.                               
244              </span>
245              <span tal:condition="python: 0">
246              <strong>Note:</strong> The 'Update' function has been temporarily disabled.                                 
247              </span>             
248                     
249          </td>
250        </tr>
251      </table>
252      <table tal:condition="python: is_so and show_check_boxes" width="100%" cellspacing="0" cellpadding="2"
253             class="folderButtons">
254        <tr>
255          <td align="left" valign="top" rowspan="3"></td>
256          <td align="left" valign="top">
257              <input type="button" value="Select all" class="context"
258                     onclick="someJavaScriptFunctionThatWillBeReplaced"
259                     i18n:attributes="value"
260                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
261                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
262                     />
263              <input type="submit" name="delete_course_result:method" value="Delete selected"
264                     class="destructive" i18n:attributes="value"
265                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
266                     ('Do you really want to delete the courses selected?', )"
267                     />
268              <input
269                     type="submit" name="refresh_level:method"
270                     class="context" value="Update"
271                     />
272              <input tal:condition="submission_allowed" type="submit" name="register_courses:method"
273                     class="context" value="Submit" /> 
274              <input tal:condition="info/validation_allowed" type="submit" name="validate_courses:method"
275                     class="context" value="Validate" />
276              <input tal:condition="info/rejection_allowed" type="submit" name="reject_courses:method"
277                     class="context" value="Reject" />
278                     
279              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
280                     tal:attributes="value study_level_view"/>                         
281              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
282                     tal:attributes="value contact_student_form"/>                         
283
284          </td>
285        </tr>
286      </table>
287      <table tal:condition="python:is_ca and is_current_level and not has_verdict" width="100%" cellspacing="0" cellpadding="2"
288             class="folderButtons">
289        <tr>
290          <td align="left" valign="top" rowspan="3"></td>
291          <td align="left" valign="top">
292              <input tal:condition="show_check_boxes"
293                     type="button" value="Select all" class="context"
294                     onclick="someJavaScriptFunctionThatWillBeReplaced"
295                     i18n:attributes="value"
296                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
297                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
298                     />
299              <input tal:condition="show_check_boxes"
300                     type="submit" name="delete_course_result:method" value="Delete selected"
301                     class="destructive" i18n:attributes="value"
302                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
303                     ('Do you really want to delete the courses selected?', )"
304                     />
305              <input tal:condition="show_check_boxes"
306                     type="submit" name="refresh_level:method"
307                     class="context" value="Update"
308                     />
309              <input tal:condition="submission_allowed" type="submit" name="register_courses:method"
310                     class="context" value="Submit" /> 
311              <input tal:condition="info/validation_allowed" type="submit" name="validate_courses:method"
312                     class="context" value="Validate" />
313              <input tal:condition="info/rejection_allowed" type="submit" name="reject_courses:method"
314                     class="context" value="Reject" />
315                     
316              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
317                     tal:attributes="value study_level_view"/>                         
318              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
319                     tal:attributes="value contact_student_form"/>   
320                                           
321
322          </td>
323        </tr>
324      </table>
325
326    </form>
327    <br />
328      <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()"
329          tal:condition="show_check_boxes">
330      <table>
331        <tr>
332          <th>Course Id</th>
333          <td><input type="text" name="course_id"
334                     tal:attributes="value request/course_id|nothing"/></td>
335          <td colspan="2">
336            <input type="submit" name="add"
337                   class="context" value="Add Course"
338                   />
339            <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
340                     tal:attributes="value study_level_view"/>                       
341          </td>               
342      </table>
343      </form>   
344  </span>
345  </span>       
346  </metal:block>   
347  </metal:main>
348
349</metal:body>
350
Note: See TracBrowser for help on using the repository browser.