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

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

ticket #200
ticket #243

  • Property svn:keywords set to Id
File size: 12.7 KB
Line 
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    <div style="text-align: right"
20         tal:condition="python:review_state in ('courses_registered','courses_validated',)">
21    <a href="" target="slip" tal:attributes="href string:course_registration_slip"
22        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')">
23        <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
24        Course Registration Slip
25    </a>
26    </div>
27
28         
29    <a href=""
30       tal:attributes="href string:${here/academicsParent}">
31      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
32      Up one level
33    </a>
34            <div style="text-align: right"
35           tal:condition="python:review_state == 'courses_validated'">
36      <a href="" target="slip" tal:attributes="href string:course_registration_slip"
37          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')">
38          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
39          Course Registration Slip
40      </a>
41     
42      </div>
43
44    <h3>
45      <span tal:condition="python: is_so or is_ca">
46        <span tal:content="info/student/name" />:
47      </span>
48      <span tal:condition="is_student">My </span>
49     
50      Course Registration Form for <span tal:content="here/title_or_id" />
51    </h3>
52             
53    <form action="." method="post" class="group" onsubmit="return submit_once()">
54      <span tal:condition="info/carry_overs" tal:omit-tag="">
55      <h4>Carryover Courses</h4>
56      <br />
57      <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">
58        <tr tal:repeat="row info/carry_overs"
59            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
60          <td align="left" valign="middle" style="width: 5px;"
61              tal:condition="show_check_boxes">
62            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
63                   tal:define="id row/id"
64                   tal:attributes="value id;
65                   id python:'cb_' + id;
66                   checked python:id in info['choosen_ids'];"
67                   />
68          </td>
69          <td width="78%" tal:content="row/title"></td>
70          <td align="center" width="10%" tal:content="row/code"></td>
71          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
72          <td align="center" width="2%" tal:content="row/credits"></td>
73          <td align="center" width="8%" tal:content="row/grade|string:"></td>
74        </tr>
75      </table>
76      </span>
77      <br />
78      <h4>Session Courses</h4>
79      <br />
80    <div class="" tal:condition="not: info/normal">
81      <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font>
82      <br /><br />
83    </div>
84      <table class="contentListing" width="100%" id="folder_content"
85             tal:condition="info/normal">     
86        <tr tal:repeat="row info/normal"
87            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
88          <td align="left" valign="middle" style="width: 5px;"
89             tal:condition="show_check_boxes">
90            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
91                   tal:define="id row/id"
92                   tal:attributes="value id;
93                   id python:'cb_' + id;
94                   checked python:id in info['choosen_ids'];"
95                   />
96          </td>
97          <td width="78%" tal:content="row/title"></td>
98          <td align="center" width="10%" tal:content="row/code"></td>
99          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
100          <td align="center" width="2%" tal:content="row/credits"></td>
101          <td align="center" width="8%" tal:content="row/coe|nothing"></td>
102         
103         
104
105
106          <td>
107          <a tal:condition="python:review_state == 'school_fee_paid'" href="edit" tal:attributes="href string:${row/code}/course_edit_form"
108          target="edit"
109          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')">
110          [edit]
111          </a>
112          </td>         
113         
114         
115        </tr>
116        <tr>
117          <td tal:condition="show_check_boxes" colspan="1"></td>
118          <td colspan="1"></td>
119          <th colspan="2">Total Credits:</th>
120          <td align="center" width="2%" tal:content="info/credits_total"></td>
121        </tr>
122      </table>
123
124     
125   
126     
127      <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2"
128             class="folderButtons">
129        <tr>
130          <td align="left" valign="top" rowspan="3"></td>
131          <td align="left" valign="top">
132              <input type="submit" name="delete_course_result:method" value="Delete selected"
133                     class="destructive" i18n:attributes="value"
134                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
135                     ('Do you really want to delete selected courses?', )"
136                     />
137              <input tal:condition="python: 0" type="submit" name="refresh_level:method"
138                     class="context" value="Update"
139                     />
140                   
141                     
142              <br /><br />
143              <input tal:condition="info/normal"
144                     type="submit" name="register_courses:method"
145                     class="context" value="Submit" />
146                     
147              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
148                     tal:attributes="value string:study_level_view"/> 
149                     
150              <br /><br />
151             
152              <span tal:condition="python: 0">
153              <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of
154              prior deletion, i.e. already deleted courses will show up again.
155              Please use this function only if you are sure that your faculty has added courses which are not yet on your course list.                               
156              </span>
157              <span tal:condition="python: 1">
158              <strong>Note:</strong> The 'Update' function has been temporarily disabled.                                 
159              </span>             
160                     
161          </td>
162        </tr>
163      </table>
164      <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2"
165             class="folderButtons">
166        <tr>
167          <td align="left" valign="top" rowspan="3"></td>
168          <td align="left" valign="top">
169              <input type="button" value="Select all" class="context"
170                     onclick="someJavaScriptFunctionThatWillBeReplaced"
171                     i18n:attributes="value"
172                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
173                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
174                     />
175              <input type="submit" name="delete_course_result:method" value="Delete selected"
176                     class="destructive" i18n:attributes="value"
177                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
178                     ('Do you really want to delete the courses selected?', )"
179                     />
180              <input
181                     type="submit" name="refresh_level:method"
182                     class="context" value="Update"
183                     />
184              <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
185                     class="context" value="Submit" /> 
186              <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
187                     class="context" value="Validate" />
188              <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
189                     class="context" value="Reject" />
190                     
191              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
192                     tal:attributes="value string:study_level_view"/>                         
193              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
194                     tal:attributes="value string:contact_student_form"/>                         
195
196          </td>
197        </tr>
198      </table>
199      <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2"
200             class="folderButtons">
201        <tr>
202          <td align="left" valign="top" rowspan="3"></td>
203          <td align="left" valign="top">
204              <input tal:condition="python: review_state == 'school_fee_paid'"
205                     type="button" value="Select all" class="context"
206                     onclick="someJavaScriptFunctionThatWillBeReplaced"
207                     i18n:attributes="value"
208                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
209                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
210                     />
211              <input tal:condition="python: review_state == 'school_fee_paid'"
212                     type="submit" name="delete_course_result:method" value="Delete selected"
213                     class="destructive" i18n:attributes="value"
214                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
215                     ('Do you really want to delete the courses selected?', )"
216                     />
217              <input tal:condition="python: review_state == 'school_fee_paid'"
218                     type="submit" name="refresh_level:method"
219                     class="context" value="Update"
220                     />
221              <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
222                     class="context" value="Submit" /> 
223              <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
224                     class="context" value="Validate" />
225              <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
226                     class="context" value="Reject" />
227                     
228              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
229                     tal:attributes="value string:study_level_view"/>                         
230              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
231                     tal:attributes="value string:contact_student_form"/>   
232                                           
233
234          </td>
235        </tr>
236      </table>
237
238    </form>
239    <br />
240      <form action="add_course_result" method="post" class="group" onsubmit="return submit_once()"
241          tal:condition="show_check_boxes">
242      <table>
243        <tr>
244          <th>Course Id</th>
245          <td><input type="text" name="course_id"
246                     tal:attributes="value request/course_id|nothing"/></td>
247          <td colspan="2">
248            <input type="submit" name="add"
249                   class="context" value="Add Course"
250                   />
251            <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
252                     tal:attributes="value string:study_level_view"/>                       
253          </td>               
254      </table>
255      </form>   
256  </span>
257  </span>         
258  </metal:main>
259</metal:body>
260
Note: See TracBrowser for help on using the repository browser.