1 | <metal:html tal:define="info context/getStudyLevelInfo; |
---|
2 | is_manager info/is_manager|nothing; |
---|
3 | s_info context/getStudentInfo;" |
---|
4 | > |
---|
5 | <metal:body use-macro="here/waeup_content_master/macros/master"> |
---|
6 | <metal:block fill-slot="header"> |
---|
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="python:is_manager and s_info"> |
---|
14 | <span tal:content="s_info/student/Title" />: |
---|
15 | </span> |
---|
16 | <span tal:content="here/title_or_id" /> |
---|
17 | </h3> |
---|
18 | <br /> |
---|
19 | <div tal:condition="python:0" tal:content="info/container_path"/> |
---|
20 | <div tal:condition="python:0" tal:content="info/cert_id"/> |
---|
21 | <div tal:condition="python:0" tal:content="info/gpa"/> |
---|
22 | </metal:block> |
---|
23 | <metal:main fill-slot="main" tal:condition="python:1"> |
---|
24 | <span tal:omit-tag="" |
---|
25 | tal:content="structure python: info['doc'].render(layout_mode='view')" /> |
---|
26 | |
---|
27 | <form action="" method="post" class="group" |
---|
28 | tal:attributes="action info/action" |
---|
29 | > |
---|
30 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
31 | <span tal:repeat="sem python:('first','second')"> |
---|
32 | <tr><th colspan="3" tal:content="python: test(sem == 'first','First Semester', 'Second Semester')" /> |
---|
33 | <tr tal:repeat="row python: info[sem]" |
---|
34 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
35 | <td align="left" valign="middle" style="width: 5px;" |
---|
36 | tal:condition="python:1 and is_manager"> |
---|
37 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
38 | tal:condition="is_manager" |
---|
39 | tal:define="id row/id" |
---|
40 | tal:attributes="value id; |
---|
41 | id python:'cb_' + id; |
---|
42 | checked python:id in info['choosen_ids'];" |
---|
43 | /> |
---|
44 | </td> |
---|
45 | <td><a href="view" tal:attributes="href string:${row/url}"> |
---|
46 | <strong tal:content="row/title" /></a> </td> |
---|
47 | <td tal:content="row/id"></td> |
---|
48 | <td tal:content="row/semester"></td> |
---|
49 | <td tal:content="row/credits"></td> |
---|
50 | <td tal:condition="is_manager" tal:content="row/score"></td> |
---|
51 | <td tal:content="row/grade"></td> |
---|
52 | <td tal:content="row/weight"></td> |
---|
53 | <td tal:condition="python:0" tal:content="row/sum"></td> |
---|
54 | <td tal:condition="python:0" tal:content="row/count"></td> |
---|
55 | <td tal:condition="row/is_editable" tal:content="row/review_state"> </td> |
---|
56 | <td> |
---|
57 | <a tal:condition="row/is_editable" |
---|
58 | href="edit" tal:attributes="href string:${row/url}/external_edit_form" |
---|
59 | target="edit" |
---|
60 | onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> |
---|
61 | [edit] |
---|
62 | </a> |
---|
63 | </td> |
---|
64 | </tr> |
---|
65 | </span> |
---|
66 | </table> |
---|
67 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
68 | class="folderButtons"> |
---|
69 | <tr> |
---|
70 | <td align="left" valign="top" rowspan="3"></td> |
---|
71 | <td align="left" valign="top"> |
---|
72 | <span tal:condition="python:1 and is_manager"> |
---|
73 | <input type="button" value="button_select_all" class="context" |
---|
74 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
75 | i18n:attributes="value" |
---|
76 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
77 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
78 | /> |
---|
79 | <input tal:condition="python:0" type="submit" name="approve_checked:method" |
---|
80 | class="context" value="Approve" /> |
---|
81 | <input tal:condition="python:0" type="submit" name="retract_checked:method" |
---|
82 | class="context" value="Retract" /> |
---|
83 | <input type="submit" name="folder_delete:method" value="button_delete" |
---|
84 | class="destructive" i18n:attributes="value" |
---|
85 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
86 | (cpsmcat('description_confirm_delete'), )" |
---|
87 | /> |
---|
88 | <input tal:condition="python: 0" |
---|
89 | type="submit" name="id_rename_form:method" |
---|
90 | class="context" value="Change Object ID" i18n:attributes="value" |
---|
91 | /> |
---|
92 | </span> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | </table> |
---|
96 | </form> |
---|
97 | </metal:main> |
---|
98 | |
---|
99 | <metal:sub fill-slot="sub"/> |
---|
100 | </metal:body> |
---|
101 | </metal:html> |
---|