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

Last change on this file since 1784 was 1783, checked in by Henrik Bettermann, 18 years ago
  • assertViewable removed and page templates adjusted, so that no traceback occurs.
  • 'Previous Session' action added
  • waeup_content_master.pt removed
  • and more
  • Property svn:keywords set to Id
File size: 11.4 KB
RevLine 
[1783]1<metal:body use-macro="here/main_template/macros/master">
2
3  <metal:main fill-slot="main"
4          tal:define="info context/getStudyLevelInfo;">
5             
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;
11                       is_ca info/is_ca;
12                       show_check_boxes info/show_check_boxes;
13                       is_student info/is_student;
14                       status_info info/status_info;
15                       review_state info/review_state;
16                       view_only info/view_only">       
17         
18         
19    <a href=""
20       tal:attributes="href string:${here/academicsParent}">
21      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
22      Up one level
23    </a>
24            <div style="text-align: right"
25           tal:condition="python:review_state == 'courses_validated'">
26      <a href="" target="slip" tal:attributes="href string:course_registration_slip"
27          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')">
28          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
29          Course Registration Slip
[723]30      </a>
[1783]31     
32      </div>
[1513]33
[1783]34    <h3>
35      <span tal:condition="python: is_so or is_ca">
36        <span tal:content="info/student/name" />:
37      </span>
38      <span tal:condition="is_student">My </span>
39     
40      Course Registration Form for <span tal:content="here/title_or_id" />
41    </h3>
42             
43    <form action="." method="post" class="group" onsubmit="return submit_once()">
44      <span tal:condition="info/carry_overs" tal:omit-tag="">
45      <h4>Carryover Courses</h4>
46      <br />
47      <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">
48        <tr tal:repeat="row info/carry_overs"
49            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
50          <td align="left" valign="middle" style="width: 5px;"
51              tal:condition="show_check_boxes">
52            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
53                   tal:define="id row/id"
54                   tal:attributes="value id;
55                   id python:'cb_' + id;
56                   checked python:id in info['choosen_ids'];"
57                   />
58          </td>
59          <td width="78%" tal:content="row/title"></td>
60          <td align="center" width="10%" tal:content="row/code"></td>
61          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
62          <td align="center" width="2%" tal:content="row/credits"></td>
63          <td align="center" width="8%" tal:content="row/grade|string:"></td>
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>
87          <td width="78%" tal:content="row/title"></td>
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>
91          <td align="center" width="8%" tal:content="row/coe|nothing"></td>
92        </tr>
93        <tr>
94          <td tal:condition="show_check_boxes" colspan="1"></td>
95          <td colspan="1"></td>
96          <th colspan="2">Total Credits:</th>
97          <td align="center" width="2%" tal:content="info/credits_total"></td>
98        </tr>
99      </table>
[1515]100
[1783]101     
102   
103     
104      <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2"
105             class="folderButtons">
106        <tr>
107          <td align="left" valign="top" rowspan="3"></td>
108          <td align="left" valign="top">
109              <input type="submit" name="delete_course_result:method" value="Delete selected"
110                     class="destructive" i18n:attributes="value"
111                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
112                     ('Do you really want to delete selected courses?', )"
[1380]113                     />
[1783]114              <input type="submit" name="refresh_level:method"
115                     class="context" value="Update"
[1380]116                     />
[1783]117                   
118                     
119              <br /><br />
120              <input tal:condition="info/normal"
121                     type="submit" name="register_courses:method"
122                     class="context" value="Submit" />
123                     
124              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
125                     tal:attributes="value string:study_level_view"/> 
126                     
127              <br /><br />
128             
129              <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of
130              prior deletion, i.e. already deleted courses will show up again.
131             
132              Please use this function only if you are sure that your faculty has added courses which are not yet on your course list.                               
133                     
134          </td>
135        </tr>
136      </table>
137      <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2"
138             class="folderButtons">
139        <tr>
140          <td align="left" valign="top" rowspan="3"></td>
141          <td align="left" valign="top">
142              <input type="button" value="Select all" class="context"
143                     onclick="someJavaScriptFunctionThatWillBeReplaced"
144                     i18n:attributes="value"
145                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
146                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
147                     />
148              <input type="submit" name="delete_course_result:method" value="Delete selected"
149                     class="destructive" i18n:attributes="value"
150                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
151                     ('Do you really want to delete the courses selected?', )"
152                     />
153              <input
154                     type="submit" name="refresh_level:method"
155                     class="context" value="Update"
156                     />
157              <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
158                     class="context" value="Submit" /> 
159              <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
160                     class="context" value="Validate" />
161              <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
162                     class="context" value="Reject" />
163                     
164              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
165                     tal:attributes="value string:study_level_view"/>                         
166              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
167                     tal:attributes="value string:contact_student_form"/>                         
[1515]168
[1783]169          </td>
170        </tr>
171      </table>
172      <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2"
173             class="folderButtons">
174        <tr>
175          <td align="left" valign="top" rowspan="3"></td>
176          <td align="left" valign="top">
177              <input tal:condition="python: review_state == 'school_fee_paid'"
178                     type="button" value="Select all" class="context"
179                     onclick="someJavaScriptFunctionThatWillBeReplaced"
180                     i18n:attributes="value"
181                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
182                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
183                     />
184              <input tal:condition="python: review_state == 'school_fee_paid'"
185                     type="submit" name="delete_course_result:method" value="Delete selected"
186                     class="destructive" i18n:attributes="value"
187                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
188                     ('Do you really want to delete the courses selected?', )"
189                     />
190              <input tal:condition="python: review_state == 'school_fee_paid'"
191                     type="submit" name="refresh_level:method"
192                     class="context" value="Update"
193                     />
194              <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
195                     class="context" value="Submit" /> 
196              <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
197                     class="context" value="Validate" />
198              <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
199                     class="context" value="Reject" />
200                     
201              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
202                     tal:attributes="value string:study_level_view"/>                         
203              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
204                     tal:attributes="value string:contact_student_form"/>   
205                                           
[1515]206
[1783]207          </td>
208        </tr>
209      </table>
[1515]210
[1783]211    </form>
212    <br />
213      <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()"
214          tal:condition="show_check_boxes">
215      <table>
216        <tr>
217          <th>Course Id</th>
218          <td><input type="text" name="course_id"
219                     tal:attributes="value request/course_id|nothing"/></td>
220          <td colspan="2">
221            <input type="submit" name="add"
222                   class="context" value="Add Course"
223                   />
224            <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
225                     tal:attributes="value string:study_level_view"/>                       
226          </td>               
227      </table>
228      </form>   
229  </span>
230  </span>         
231  </metal:main>
232</metal:body>
[1515]233
Note: See TracBrowser for help on using the repository browser.