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:courses_validated_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 | Validated Courses Slip |
---|
23 | </a> |
---|
24 | |
---|
25 | </div> |
---|
26 | |
---|
27 | <h3> |
---|
28 | <span tal:condition="is_so"> |
---|
29 | <span tal:content="info/student/name" />: |
---|
30 | </span> |
---|
31 | <span tal:content="here/title_or_id" /> |
---|
32 | </h3> |
---|
33 | <br /> |
---|
34 | </metal:block> |
---|
35 | <metal:main fill-slot="main" tal:condition="python:1"> |
---|
36 | <h3 tal:content="status_info"></h3> |
---|
37 | <form action="." method="post" class="group"> |
---|
38 | <span tal:condition="info/carry_overs" tal:omit-tag=""> |
---|
39 | <h3>Carryover Courses</h3> |
---|
40 | <br /> |
---|
41 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
42 | <tr tal:repeat="row info/carry_overs" |
---|
43 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
44 | <td align="left" valign="middle" style="width: 5px;" |
---|
45 | tal:condition="show_check_boxes"> |
---|
46 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
47 | tal:define="id row/id" |
---|
48 | tal:attributes="value id; |
---|
49 | id python:'cb_' + id; |
---|
50 | checked python:id in info['choosen_ids'];" |
---|
51 | /> |
---|
52 | </td> |
---|
53 | <td width="78%" tal:content="row/title"></td> |
---|
54 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
55 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
56 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
57 | <td align="center" width="8%" tal:content="row/grade|string:"></td> |
---|
58 | </tr> |
---|
59 | </table> |
---|
60 | </span> |
---|
61 | <h3>Session Courses</h3> |
---|
62 | <br /> |
---|
63 | <table class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
64 | <tr tal:repeat="row info/normal" |
---|
65 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
66 | <td align="left" valign="middle" style="width: 5px;" |
---|
67 | tal:condition="show_check_boxes"> |
---|
68 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
69 | tal:define="id row/id" |
---|
70 | tal:attributes="value id; |
---|
71 | id python:'cb_' + id; |
---|
72 | checked python:id in info['choosen_ids'];" |
---|
73 | /> |
---|
74 | </td> |
---|
75 | <td width="78%" tal:content="row/title"></td> |
---|
76 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
77 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
78 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
79 | <td align="center" width="8%" tal:content="row/coe|nothing"></td> |
---|
80 | </tr> |
---|
81 | <tr> |
---|
82 | <td colspan="1"></td> |
---|
83 | <td colspan="1"></td> |
---|
84 | <th colspan="2">Total Credits:</th> |
---|
85 | <td align="center" width="2%" tal:content="info/credits_total"></td> |
---|
86 | </tr> |
---|
87 | </table> |
---|
88 | <table tal:condition="not:view_only" width="100%" cellspacing="0" cellpadding="2" |
---|
89 | class="folderButtons"> |
---|
90 | <tr> |
---|
91 | <td align="left" valign="top" rowspan="3"></td> |
---|
92 | <td align="left" valign="top"> |
---|
93 | <span tal:condition="python:1"> |
---|
94 | <input type="button" value="button_select_all" class="context" |
---|
95 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
96 | i18n:attributes="value" |
---|
97 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
98 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
99 | /> |
---|
100 | <input type="submit" name="course_result_delete:method" value="Delete checked" |
---|
101 | class="destructive" i18n:attributes="value" |
---|
102 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
103 | ('really delete checked courses', )" |
---|
104 | /> |
---|
105 | <input tal:condition="python:1" type="submit" name="register_courses:method" |
---|
106 | class="context" value="Register" /> |
---|
107 | <input tal:condition="is_ca" type="submit" name="notify_change_courses:method" |
---|
108 | class="context" value="Reject Courses" /> |
---|
109 | <input tal:condition="python: 1" |
---|
110 | type="submit" name="refresh_level:method" |
---|
111 | class="context" value="Refresh List" |
---|
112 | /> |
---|
113 | </span> |
---|
114 | </td> |
---|
115 | </tr> |
---|
116 | </table> |
---|
117 | <table tal:condition="python:is_ca and show_check_boxes" 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 | <span tal:condition="python:1"> |
---|
123 | <input type="button" value="button_select_all" class="context" |
---|
124 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
125 | i18n:attributes="value" |
---|
126 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
127 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
128 | /> |
---|
129 | <input type="submit" name="course_result_delete:method" value="Delete checked" |
---|
130 | class="destructive" i18n:attributes="value" |
---|
131 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
132 | ('really delete checked courses', )" |
---|
133 | /> |
---|
134 | <input tal:condition="python:1" type="submit" name="validate_courses:method" |
---|
135 | class="context" value="Validate" /> |
---|
136 | <input tal:condition="is_ca" type="submit" name="notify_change_courses:method" |
---|
137 | class="context" value="Reject Courses" /> |
---|
138 | <input tal:condition="python: 1" |
---|
139 | type="submit" name="refresh_level:method" |
---|
140 | class="context" value="Refresh List" |
---|
141 | /> |
---|
142 | </span> |
---|
143 | </td> |
---|
144 | </tr> |
---|
145 | </table> |
---|
146 | </form> |
---|
147 | <br /> |
---|
148 | <form action="add_course_result" method="post" class="group" |
---|
149 | tal:condition="show_check_boxes"> |
---|
150 | <table> |
---|
151 | <tr> |
---|
152 | <th>Course Id</th> |
---|
153 | <td><input type="text" name="course_id" |
---|
154 | tal:attributes="value request/course_id|nothing"/></td> |
---|
155 | <td tal:condition="request/error|nothing" |
---|
156 | tal:content="request/error" /> |
---|
157 | </tr> |
---|
158 | <tr> |
---|
159 | <th></th> |
---|
160 | <td colspan="2"> |
---|
161 | <input type="submit" name="add" |
---|
162 | class="context" value="Add Course" |
---|
163 | /> |
---|
164 | </td> |
---|
165 | </tr> |
---|
166 | </table> |
---|
167 | </form> |
---|
168 | </metal:main> |
---|
169 | </metal:body> |
---|
170 | </metal:html> |
---|
171 | |
---|