source: WAeUP_SRP/branches/uli/skins/waeup_student/external_study_level_view.pt @ 17946

Last change on this file since 17946 was 1593, checked in by uli, 18 years ago

Merged current trunk into uli-branch.

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