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

Last change on this file since 3119 was 3103, checked in by joachim, 17 years ago

do not show score in uniben,

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