source: WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt @ 5569

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

print more info about student

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