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

Last change on this file since 1627 was 1627, checked in by Henrik Bettermann, 18 years ago

ticket #129

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