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

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

course registration slip added

  • Property svn:keywords set to Id
File size: 9.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        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
66          <tr tal:repeat="row info/normal"
67              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
68            <td align="left" valign="middle" style="width: 5px;"
69                      tal:condition="show_check_boxes">
70              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
71                     tal:define="id row/id"
72                     tal:attributes="value id;
73                     id python:'cb_' + id;
74                     checked python:id in info['choosen_ids'];"
75                     />
76            </td>
77            <td width="78%" tal:content="row/title"></td>
78            <td align="center" width="10%" tal:content="row/code"></td>
79            <td align="center" width="2%">S<span tal:content="row/semester" /></td>
80            <td align="center" width="2%" tal:content="row/credits"></td>
81            <td align="center" width="8%" tal:content="row/coe|nothing"></td>
82          </tr>
83          <tr>
84            <td tal:condition="show_check_boxes" colspan="1"></td>
85            <td colspan="1"></td>
86            <th colspan="2">Total Credits:</th>
87            <td align="center" width="2%" tal:content="info/credits_total"></td>
88          </tr>
89        </table>
90
91       
92     
93       
94        <table tal:condition="python: is_student and review_state == 'school_fee_paid'" width="100%" cellspacing="0" cellpadding="2"
95               class="folderButtons">
96          <tr>
97            <td align="left" valign="top" rowspan="3"></td>
98            <td align="left" valign="top">
99                <input type="submit" name="course_result_delete:method" value="Delete Selected"
100                       class="destructive" i18n:attributes="value"
101                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
102                       ('Do you really want to delete selected courses?', )"
103                       />
104                <input
105                       type="submit" name="refresh_level:method"
106                       class="context" value="Check for Courses"
107                       />
108                <br /><br />
109                <input type="submit" name="register_courses:method"
110                       class="context" value="Submit Course List" />
111            </td>
112          </tr>
113        </table>
114        <table tal:condition="python:is_so" width="100%" cellspacing="0" cellpadding="2"
115               class="folderButtons">
116          <tr>
117            <td align="left" valign="top" rowspan="3"></td>
118            <td align="left" valign="top">
119                <input type="button" value="Select All" class="context"
120                       onclick="someJavaScriptFunctionThatWillBeReplaced"
121                       i18n:attributes="value"
122                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
123                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
124                       />
125                <input type="submit" name="course_result_delete:method" value="Delete Selected"
126                       class="destructive" i18n:attributes="value"
127                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
128                       ('really delete checked courses', )"
129                       />
130                <input
131                       type="submit" name="refresh_level:method"
132                       class="context" value="Check for Courses"
133                       />
134                <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
135                       class="context" value="Submit Course List" /> 
136                <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
137                       class="context" value="Validate List" />
138                <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
139                       class="context" value="Reject Course List" />
140
141            </td>
142          </tr>
143        </table>
144        <table tal:condition="python:is_ca" width="100%" cellspacing="0" cellpadding="2"
145               class="folderButtons">
146          <tr>
147            <td align="left" valign="top" rowspan="3"></td>
148            <td align="left" valign="top">
149                <input tal:condition="python: review_state == 'school_fee_paid'"
150                       type="button" value="Select All" class="context"
151                       onclick="someJavaScriptFunctionThatWillBeReplaced"
152                       i18n:attributes="value"
153                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
154                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
155                       />
156                <input tal:condition="python: review_state == 'school_fee_paid'"
157                       type="submit" name="course_result_delete:method" value="Delete Selected"
158                       class="destructive" i18n:attributes="value"
159                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
160                       ('really delete checked courses', )"
161                       />
162                <input tal:condition="python: review_state == 'school_fee_paid'"
163                       type="submit" name="refresh_level:method"
164                       class="context" value="Check for Courses"
165                       />
166                <input tal:condition="python: review_state == 'school_fee_paid'" type="submit" name="register_courses:method"
167                       class="context" value="Submit Course List" /> 
168                <input tal:condition="python: review_state == 'courses_registered'" type="submit" name="validate_courses:method"
169                       class="context" value="Validate List" />
170                <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
171                       class="context" value="Reject Course List" />
172
173            </td>
174          </tr>
175        </table>
176
177      </form>
178      <br />
179        <form action="add_course_result" method="post" class="group"
180            tal:condition="show_check_boxes">
181        <table>
182          <tr>
183            <th>Course Id</th>
184            <td><input type="text" name="course_id"
185                       tal:attributes="value request/course_id|nothing"/></td>
186            <td tal:condition="request/error|nothing"
187                tal:content="request/error" />
188            <td colspan="2">
189              <input type="submit" name="add"
190                     class="context" value="Add Course"
191                     />
192            </td>               
193        </table>
194        </form>         
195    </metal:main>
196  </metal:body>
197</metal:html>
198 
Note: See TracBrowser for help on using the repository browser.