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