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