source: WAeUP_SRP/trunk/skins/waeup_student/student_view.pt @ 1197

Last change on this file since 1197 was 1197, checked in by Henrik Bettermann, 18 years ago

minor changes

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1<metal:html tal:define="info context/getStudentFolderInfo;
2                is_staff info/is_staff;
3                is_student info/is_student">
4  <metal:body use-macro="here/main_template/macros/master">
5    <metal:main fill-slot="main">
6      <span tal:condition="not: info">
7        <span tal:content="here/illegal_view" />
8      </span>
9      <span tal:condition="info"
10            tal:define="review_state info/review_state;
11                        rows python: info['items']">
12
13      <a href="" tal:condition="is_staff"
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>
18        <h3 tal:content="info/name" />
19        <br />
20
21        <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content">     
22          <tr tal:repeat="row rows"
23            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
24            <td><a href="view" tal:attributes="href string:${row/url}">
25              <strong tal:content="row/title" /></a> </td>
26            <td>
27            <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation',)"
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>
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>             
39            </td>
40          </tr>
41        </table>
42
43    <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
44      <span tal:repeat="row rows">
45        <tr tal:condition="row/display">
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>
51
52          <td width="80px" align="center">
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]
56            </a>     
57          </td>                 
58         
59          <td width="100px" align="left">
60              <span tal:content="row/review_state" />
61          </td>
62
63
64
65        </tr>
66      </span>
67    </table>
68
69       
70      </span>
71    </metal:main>
72  </metal:body>
73</metal:html>
Note: See TracBrowser for help on using the repository browser.