source: WAeUP_SRP/trunk/skins/waeup_ois/academic_report_view.pt @ 4057

Last change on this file since 4057 was 4028, checked in by Henrik Bettermann, 16 years ago

add '%' to passmark indication

File size: 14.0 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
25    <span tal:condition="python:True"> 
26    <div style="text-align: right"
27         tal:condition="python:True">
28    <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> Academic Report Slip:
29    <a href="" target="slip" tal:attributes="href string:callAcademicReportSlip?term=1"
30        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')">
31        Term 1 /
32    </a>
33    <a href="" target="slip" tal:attributes="href string:callAcademicReportSlip?term=2"
34        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')">
35        Term 2 /
36    </a>
37    <a href="" target="slip" tal:attributes="href string:callAcademicReportSlip?term=3"
38        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')">
39        Term 3
40    </a>     
41    </div>
42    </span>
43         
44    <a href=""
45       tal:attributes="href string:${here/academicsParent}">
46      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
47      Up one level
48    </a>
49
50    <h3>
51      <span tal:condition="python: is_so or is_ca">
52        <span tal:content="info/student/name" />:
53      </span>
54      Subject Registration Form for <span tal:content="info/level_str" />
55    </h3>
56       
57    <br />
58           
59    <table>
60      <tr>
61        <th>Session:</th>
62        <td><span tal:content="info/session" /></td>
63      </tr>
64      <tr tal:condition="has_verdict">
65        <th>Verdict:</th>
66        <td><span tal:content="info/verdict" /></td>
67      </tr>     
68      <tr>
69        <th>Passmark:</th>
70        <td>55%</td>
71      </tr>       
72    </table>           
73   
74             
75    <form action="." method="post" class="group" onsubmit="return submit_once()">
76
77      <div class="" tal:condition="python: info['data_missing'] and not info['spillover']">
78        <font color="red">Your faculty has not yet provided the list of subjects for your certificate. Please contact your faculty!</font>
79        <br /><br />
80      </div>
81       
82      <span tal:condition="not:info/data_missing" tal:omit-tag="">
83
84      <table class="contentListing"  id="folder_content" width="100%">
85       
86        <span tal:repeat="sem python:(('1','Term One','normal1'),('2','Term Two','normal2'),('3','Term Three','normal3'))">       
87                   
88        <tr tal:condition="python:info[sem[2]]">
89        <th tal:attributes="colspan python: test(show_check_boxes,'2','1')"
90            tal:content="python:sem[1]" />
91        <th align='center'>Attitude To Learning</th>   
92        <th align='center'>CA 1 <br />Marks</th>
93        <th align='center'>CA 2 <br />Marks</th>   
94        <th align='center'>Exam <br />Marks</th>             
95        <th align='center'>Overall <br />Marks</th>
96        <th align='center'>Grade</th>
97        <th tal:condition="submission_allowed" align='center'></th>   
98        <th tal:condition="is_so" align='center'></th>
99           
100        </tr>               
101        <tr tal:repeat="row python:info[sem[2]]"
102            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
103          <td align="left" valign="middle" style="width: 5%;"
104             tal:condition="show_check_boxes">
105            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
106                   tal:define="id row/id"
107                   tal:attributes="value id;
108                   id python:'cb_' + id;
109                   checked python:id in info['choosen_ids'];"
110                   />
111          </td>
112          <td tal:content="row/title"></td>
113          <td align="center" tal:content="python:context.portal_vocabularies.pastoral_grade.get(row['atl'])"></td>
114          <td align="center" tal:content="row/ca1"></td>
115          <td align="center" tal:content="row/ca2"></td>
116          <td align="center" tal:content="row/exam"></td>
117          <td align="center" tal:content="row/score_calc"></td>
118          <td align="center" tal:content="row/grade"></td>
119         
120          <td tal:condition="python:submission_allowed and is_student and False" align="center">
121            <a href="edit" tal:attributes="href string:course_edit/${row/code}"
122            target="edit_course_result"
123            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')">
124            [edit]
125            </a>
126          </td>       
127          <td tal:condition="is_so" align="center">
128            <a href="edit" tal:attributes="href string:lecturer_course_edit/${row/code}"
129            target="edit_course_result"
130            onclick="javascript:window.open('','edit_course_result','width=600, height=500, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
131            [edit]
132            </a>
133          </td>                   
134        </tr>
135        <tr><td>&nbsp;</td></tr>
136        </span>       
137       
138      </table>
139      </span>
140     
141 
142         
143      <br />
144     
145      <table tal:condition="python: is_student and show_check_boxes" width="100%" cellspacing="0" cellpadding="2"
146             class="folderButtons">
147        <tr>
148          <td align="left" valign="top" rowspan="3"></td>
149          <td align="left" valign="top">
150              <input type="submit" name="delete_course_result:method" value="Delete selected"
151                     class="destructive" i18n:attributes="value"
152                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
153                     ('Do you really want to delete selected subjects?', )"
154                     />
155              <input tal:condition="python: 1" type="submit" name="refresh_level:method"
156                     class="context" value="Update"
157                     />
158                   
159                     
160              <br /><br />
161              <input tal:condition="not: info/credits_exceeded"
162                     type="submit" name="register_courses:method"
163                     class="context" value="Submit to Academic Tutor"
164                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
165                     ('Do you really want to submit the list? You will not be able to edit your data after submission.', )" />
166              <span tal:condition="info/credits_exceeded">
167                  <font color="red"> <strong>Your total credits exceed <span tal:replace="info/max_credits" />!</strong></font>
168              </span>
169                     
170              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
171                     tal:attributes="value study_level_view"/> 
172                     
173              <br /><br />
174             
175              <span tal:condition="python: 1">
176              <strong>Note:</strong> 'Update' checks for all subjects in your certificate and will add them to your subject list irrespective of
177              prior deletion, i.e. already deleted subjectss will show up again.
178              Please use this function only if you are sure that your department has added subjects which are not yet on your subject list.                               
179              </span>
180              <span tal:condition="python: 0">
181              <strong>Note:</strong> The 'Update' function has been temporarily disabled.                                 
182              </span>             
183                     
184          </td>
185        </tr>
186      </table>
187      <table tal:condition="python: is_so and show_check_boxes" width="100%" cellspacing="0" cellpadding="2"
188             class="folderButtons">
189        <tr>
190          <td align="left" valign="top" rowspan="3"></td>
191          <td align="left" valign="top">
192              <input type="button" value="Select all" class="context"
193                     onclick="someJavaScriptFunctionThatWillBeReplaced"
194                     i18n:attributes="value"
195                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
196                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
197                     />
198              <input type="submit" name="delete_course_result:method" value="Delete selected"
199                     class="destructive" i18n:attributes="value"
200                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
201                     ('Do you really want to delete the subjects selected?', )"
202                     />
203              <input
204                     type="submit" name="refresh_level:method"
205                     class="context" value="Update"
206                     />
207              <input tal:condition="submission_allowed" type="submit" name="register_courses:method"
208                     class="context" value="Submit" /> 
209              <input tal:condition="info/validation_allowed" type="submit" name="validate_courses:method"
210                     class="context" value="Validate" />
211              <input tal:condition="info/rejection_allowed" type="submit" name="reject_courses:method"
212                     class="context" value="Reject" />
213                     
214              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
215                     tal:attributes="value study_level_view"/>                         
216              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
217                     tal:attributes="value contact_student_form"/>                         
218
219          </td>
220        </tr>
221      </table>
222      <table tal:condition="python:is_ca and is_current_level and not has_verdict" width="100%" cellspacing="0" cellpadding="2"
223             class="folderButtons">
224        <tr>
225          <td align="left" valign="top" rowspan="3"></td>
226          <td align="left" valign="top">
227              <input tal:condition="show_check_boxes"
228                     type="button" value="Select all" class="context"
229                     onclick="someJavaScriptFunctionThatWillBeReplaced"
230                     i18n:attributes="value"
231                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
232                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
233                     />
234              <input tal:condition="show_check_boxes"
235                     type="submit" name="delete_course_result:method" value="Delete selected"
236                     class="destructive" i18n:attributes="value"
237                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
238                     ('Do you really want to delete the subjects selected?', )"
239                     />
240              <input tal:condition="show_check_boxes"
241                     type="submit" name="refresh_level:method"
242                     class="context" value="Update"
243                     />
244              <input tal:condition="submission_allowed" type="submit" name="register_courses:method"
245                     class="context" value="Submit" /> 
246              <input tal:condition="info/validation_allowed" type="submit" name="validate_courses:method"
247                     class="context" value="Validate" />
248              <input tal:condition="info/rejection_allowed" type="submit" name="reject_courses:method"
249                     class="context" value="Reject" />
250                     
251              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
252                     tal:attributes="value study_level_view"/>                         
253              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
254                     tal:attributes="value contact_student_form"/>   
255                                           
256
257          </td>
258        </tr>
259      </table>
260
261    </form>
262    <br />
263      <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()"
264          tal:condition="show_check_boxes">
265      <table>
266        <tr>
267          <th>Subject Id</th>
268          <td><input type="text" name="course_id"
269                     tal:attributes="value request/course_id|nothing"/></td>
270          <td colspan="2">
271            <input type="submit" name="add"
272                   class="context" value="Add Subject"
273                   />
274            <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
275                     tal:attributes="value study_level_view"/>                       
276          </td>               
277      </table>
278      </form>   
279     
280      <table>     
281           <tr>
282            <th valign='top'>Pastoral Reports:</th>
283            <td>
284              <span tal:repeat="item python:info['items']">
285                <a href="view"
286                   tal:attributes="href item/id"
287                   tal:content="item/title"/><br />
288              </span>
289            </td>
290          </tr>
291       </table>     
292  </span>
293  </span>       
294  </metal:block>   
295  </metal:main>
296
297</metal:body>
298
Note: See TracBrowser for help on using the repository browser.