source: WAeUP_SRP/base/skins/waeup_student/external_study_level_view.pt @ 2659

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

course registration design fixed

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