1 | <metal:html tal:define="info python:context.getStudentInfo(with_items=1); |
---|
2 | is_so context/isSectionOfficer; |
---|
3 | is_staff context/isStaff; |
---|
4 | is_student context/isStudent"> |
---|
5 | <metal:body use-macro="here/main_template/macros/master"> |
---|
6 | <metal:main fill-slot="main"> |
---|
7 | <span tal:condition="not: info"> |
---|
8 | <span tal:content="here/illegal_view" /> |
---|
9 | </span> |
---|
10 | <span tal:condition="info" |
---|
11 | tal:define="review_state info/review_state; |
---|
12 | rows python: info['items']"> |
---|
13 | |
---|
14 | <a href="" tal:condition="is_staff" |
---|
15 | tal:attributes="href string:${here/academicsParent}"> |
---|
16 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
17 | Up one level |
---|
18 | </a> |
---|
19 | |
---|
20 | <h3 tal:content="info/student/Title" /> |
---|
21 | <br /> |
---|
22 | |
---|
23 | <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
24 | <tr tal:repeat="row rows" |
---|
25 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
26 | <td><a href="view" tal:attributes="href string:${row/url}"> |
---|
27 | <strong tal:content="row/title" /></a> </td> |
---|
28 | <td> |
---|
29 | <a tal:condition="python: row['is_editable'] and row['type']!='StudentClearance'" |
---|
30 | href="edit" tal:attributes="href string:${row/url}/external_edit_form" |
---|
31 | target="edit" |
---|
32 | 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')"> |
---|
33 | [edit] |
---|
34 | </a> |
---|
35 | <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'" |
---|
36 | href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form" |
---|
37 | target="edit" |
---|
38 | 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')"> |
---|
39 | [edit and change state] |
---|
40 | </a> |
---|
41 | </td> |
---|
42 | </tr> |
---|
43 | </table> |
---|
44 | |
---|
45 | <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content"> |
---|
46 | <span tal:repeat="row rows"> |
---|
47 | <tr tal:condition="row/display"> |
---|
48 | <td><a href="view" tal:condition="row/s_view_link" |
---|
49 | tal:attributes="href string:${row/s_view_link}"> |
---|
50 | <strong tal:content="row/title" /></a> |
---|
51 | <strong tal:condition="not:row/s_view_link" tal:content="row/title" /> |
---|
52 | </td> |
---|
53 | |
---|
54 | <td width="80px" align="center"> |
---|
55 | <a tal:condition="python: row['s_edit_link'] and row['is_editable']" |
---|
56 | href="edit" tal:attributes="href string:${row/s_edit_link}"> |
---|
57 | [edit] |
---|
58 | </a> |
---|
59 | </td> |
---|
60 | |
---|
61 | <td width="100px" align="left"> |
---|
62 | <span tal:content="row/review_state" /> |
---|
63 | </td> |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | </tr> |
---|
68 | </span> |
---|
69 | </table> |
---|
70 | |
---|
71 | |
---|
72 | </span> |
---|
73 | </metal:main> |
---|
74 | </metal:body> |
---|
75 | </metal:html> |
---|