source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/study_level_view_azax.pt @ 9681

Last change on this file since 9681 was 1997, checked in by joachim, 17 years ago

starting

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