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 | > |
---|
7 | <a href="" |
---|
8 | tal:attributes="href string:${here/academicsParent}"> |
---|
9 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
10 | Up one level |
---|
11 | </a> |
---|
12 | <h3> |
---|
13 | <span tal:condition="is_so"> |
---|
14 | <span tal:content="info/student/name" />: |
---|
15 | </span> |
---|
16 | <span tal:content="here/title_or_id" /> |
---|
17 | </h3> |
---|
18 | <br /> |
---|
19 | </metal:block> |
---|
20 | <metal:main fill-slot="main" tal:condition="python:1"> |
---|
21 | |
---|
22 | <form action="." method="post" class="group"> |
---|
23 | <span tal:condition="info/carry_overs" tal:omit-tag=""> |
---|
24 | <h3>Carryover Courses</h3> |
---|
25 | <br /> |
---|
26 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
27 | <tr tal:repeat="row info/carry_overs" |
---|
28 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
29 | <td align="left" valign="middle" style="width: 5px;"> |
---|
30 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
31 | tal:define="id row/id" |
---|
32 | tal:attributes="value id; |
---|
33 | id python:'cb_' + id; |
---|
34 | checked python:id in info['choosen_ids'];" |
---|
35 | /> |
---|
36 | </td> |
---|
37 | <td width="78%" tal:content="row/title"></td> |
---|
38 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
39 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
40 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
41 | <td align="center" width="8%" tal:content="row/grade|string:"></td> |
---|
42 | </tr> |
---|
43 | </table> |
---|
44 | </span> |
---|
45 | <h3>Session Courses</h3> |
---|
46 | <br /> |
---|
47 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
48 | <tr tal:repeat="row info/normal" |
---|
49 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
50 | <td align="left" valign="middle" style="width: 5px;"> |
---|
51 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
52 | tal:define="id row/id" |
---|
53 | tal:attributes="value id; |
---|
54 | id python:'cb_' + id; |
---|
55 | checked python:id in info['choosen_ids'];" |
---|
56 | /> |
---|
57 | </td> |
---|
58 | <td width="78%" tal:content="row/title"></td> |
---|
59 | <td align="center" width="10%" tal:content="row/code"></td> |
---|
60 | <td align="center" width="2%">S<span tal:content="row/semester" /></td> |
---|
61 | <td align="center" width="2%" tal:content="row/credits"></td> |
---|
62 | <td align="center" width="8%" tal:content="row/coe|nothing"></td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <td colspan="1"></td> |
---|
66 | <td colspan="1"></td> |
---|
67 | <th colspan="2">Total Credits:</th> |
---|
68 | <td align="center" width="2%" tal:content="info/credits_total"></td> |
---|
69 | </tr> |
---|
70 | </table> |
---|
71 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
72 | class="folderButtons"> |
---|
73 | <tr> |
---|
74 | <td align="left" valign="top" rowspan="3"></td> |
---|
75 | <td align="left" valign="top"> |
---|
76 | <span tal:condition="python:1"> |
---|
77 | <input type="button" value="button_select_all" class="context" |
---|
78 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
79 | i18n:attributes="value" |
---|
80 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
81 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
82 | /> |
---|
83 | <input tal:condition="python:0" type="submit" name="register_checked:method" |
---|
84 | class="context" value="Register" /> |
---|
85 | <input tal:condition="python:0" type="submit" name="retract_checked:method" |
---|
86 | class="context" value="Retract" /> |
---|
87 | <input type="submit" name="course_result_delete:method" value="button_delete" |
---|
88 | class="destructive" i18n:attributes="value" |
---|
89 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
90 | (cpsmcat('description_confirm_delete'), )" |
---|
91 | /> |
---|
92 | <input tal:condition="python: 0" |
---|
93 | type="submit" name="id_rename_form:method" |
---|
94 | class="context" value="Change Object ID" i18n:attributes="value" |
---|
95 | /> |
---|
96 | </span> |
---|
97 | </td> |
---|
98 | </tr> |
---|
99 | </table> |
---|
100 | </form> |
---|
101 | <br /> |
---|
102 | <form action="add_course_result" method="post" class="group"> |
---|
103 | <table> |
---|
104 | <tr> |
---|
105 | <th>Course Id</th> |
---|
106 | <td><input type="text" name="course_id" |
---|
107 | tal:attributes="value request/course_id|nothing"/></td> |
---|
108 | <td tal:condition="request/error|nothing" |
---|
109 | tal:content="request/error" /> |
---|
110 | </tr> |
---|
111 | <tr> |
---|
112 | <th></th> |
---|
113 | <td colspan="2"> |
---|
114 | <input type="submit" name="add" |
---|
115 | class="context" value="Add Course" |
---|
116 | /> |
---|
117 | </td> |
---|
118 | </tr> |
---|
119 | </table> |
---|
120 | </form> |
---|
121 | </metal:main> |
---|
122 | </metal:body> |
---|
123 | </metal:html> |
---|
124 | |
---|