source: WAeUP_SRP/base/skins/waeup_student/study_level_view.pt @ 2582

Last change on this file since 2582 was 2489, checked in by Henrik Bettermann, 17 years ago

fix for students with strange session result course codes
beautify course result views
create_level.py: do not fill grade of carry-over courses; grade is a deprecated catalog field

  • Property svn:keywords set to Id
File size: 12.7 KB
RevLine 
[1783]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">       
[1861]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
[1783]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>
[1513]31
[1783]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          <td align="left" valign="middle" style="width: 5px;"
49              tal:condition="show_check_boxes">
50            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
51                   tal:define="id row/id"
52                   tal:attributes="value id;
53                   id python:'cb_' + id;
54                   checked python:id in info['choosen_ids'];"
55                   />
56          </td>
[2489]57          <td width="71%" tal:content="row/title"></td>
[1783]58          <td align="center" width="10%" tal:content="row/code"></td>
59          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
60          <td align="center" width="2%" tal:content="row/credits"></td>
[2448]61          <td align="center" width="10%"> <span tal:content="row/coe|nothing" /></td>
62          <td tal:condition="python:review_state == 'school_fee_paid'" align="center" width="5%">&nbsp;</td>
63       
[1783]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>
[2489]87          <td width="71%" tal:content="row/title"></td>
[1783]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>
[2448]91          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
[1861]92         
93         
94
95
[2448]96          <td tal:condition="python:review_state == 'school_fee_paid'" width="5%" align="center">
97          <a href="edit" tal:attributes="href string:course_edit/${row/code}"
[1861]98          target="edit"
99          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')">
100          [edit]
101          </a>
102          </td>         
103         
104         
[1783]105        </tr>
106        <tr>
107          <td tal:condition="show_check_boxes" colspan="1"></td>
108          <td colspan="1"></td>
109          <th colspan="2">Total Credits:</th>
110          <td align="center" width="2%" tal:content="info/credits_total"></td>
111        </tr>
112      </table>
[1515]113
[1783]114     
115   
116     
117      <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2"
118             class="folderButtons">
119        <tr>
120          <td align="left" valign="top" rowspan="3"></td>
121          <td align="left" valign="top">
122              <input type="submit" name="delete_course_result:method" value="Delete selected"
123                     class="destructive" i18n:attributes="value"
124                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
125                     ('Do you really want to delete selected courses?', )"
[1380]126                     />
[1874]127              <input tal:condition="python: 1" type="submit" name="refresh_level:method"
[1783]128                     class="context" value="Update"
[1380]129                     />
[1783]130                   
131                     
132              <br /><br />
[2031]133              <input tal:condition="info/submission_allowed"
[1783]134                     type="submit" name="register_courses:method"
[2031]135                     class="context" value="Submit to Course Adviser"
136                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
[2054]137                     ('Do you really want to submit the course list? You will not be able to edit your data after submission.', )" />
[1874]138              <span tal:condition="info/credits_exceeded">
[2279]139                  <font color="red"> <strong>Your total credits exceed <span tal:replace="info/max_credits" />!</strong></font>
[1874]140              </span>
[1783]141                     
142              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
143                     tal:attributes="value string:study_level_view"/> 
144                     
145              <br /><br />
146             
[1874]147              <span tal:condition="python: 1">
[1783]148              <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of
149              prior deletion, i.e. already deleted courses will show up again.
150              Please use this function only if you are sure that your faculty has added courses which are not yet on your course list.                               
[1789]151              </span>
[1874]152              <span tal:condition="python: 0">
[1789]153              <strong>Note:</strong> The 'Update' function has been temporarily disabled.                                 
154              </span>             
[1783]155                     
156          </td>
157        </tr>
158      </table>
159      <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2"
160             class="folderButtons">
161        <tr>
162          <td align="left" valign="top" rowspan="3"></td>
163          <td align="left" valign="top">
164              <input type="button" value="Select all" class="context"
165                     onclick="someJavaScriptFunctionThatWillBeReplaced"
166                     i18n:attributes="value"
167                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
168                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
169                     />
170              <input type="submit" name="delete_course_result:method" value="Delete selected"
171                     class="destructive" i18n:attributes="value"
172                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
173                     ('Do you really want to delete the courses selected?', )"
174                     />
175              <input
176                     type="submit" name="refresh_level:method"
177                     class="context" value="Update"
178                     />
179              <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
180                     class="context" value="Submit" /> 
181              <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
182                     class="context" value="Validate" />
183              <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
184                     class="context" value="Reject" />
185                     
186              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
187                     tal:attributes="value string:study_level_view"/>                         
188              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
189                     tal:attributes="value string:contact_student_form"/>                         
[1515]190
[1783]191          </td>
192        </tr>
193      </table>
194      <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2"
195             class="folderButtons">
196        <tr>
197          <td align="left" valign="top" rowspan="3"></td>
198          <td align="left" valign="top">
199              <input tal:condition="python: review_state == 'school_fee_paid'"
200                     type="button" value="Select all" class="context"
201                     onclick="someJavaScriptFunctionThatWillBeReplaced"
202                     i18n:attributes="value"
203                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
204                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
205                     />
206              <input tal:condition="python: review_state == 'school_fee_paid'"
207                     type="submit" name="delete_course_result:method" value="Delete selected"
208                     class="destructive" i18n:attributes="value"
209                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
210                     ('Do you really want to delete the courses selected?', )"
211                     />
212              <input tal:condition="python: review_state == 'school_fee_paid'"
213                     type="submit" name="refresh_level:method"
214                     class="context" value="Update"
215                     />
216              <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
217                     class="context" value="Submit" /> 
218              <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
219                     class="context" value="Validate" />
220              <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
221                     class="context" value="Reject" />
222                     
223              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
224                     tal:attributes="value string:study_level_view"/>                         
225              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
226                     tal:attributes="value string:contact_student_form"/>   
227                                           
[1515]228
[1783]229          </td>
230        </tr>
231      </table>
[1515]232
[1783]233    </form>
234    <br />
235      <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()"
236          tal:condition="show_check_boxes">
237      <table>
238        <tr>
239          <th>Course Id</th>
240          <td><input type="text" name="course_id"
241                     tal:attributes="value request/course_id|nothing"/></td>
242          <td colspan="2">
243            <input type="submit" name="add"
244                   class="context" value="Add Course"
245                   />
246            <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
247                     tal:attributes="value string:study_level_view"/>                       
248          </td>               
249      </table>
250      </form>   
251  </span>
252  </span>         
253  </metal:main>
254</metal:body>
[1515]255
Note: See TracBrowser for help on using the repository browser.