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

Last change on this file since 1212 was 1212, checked in by joachim, 18 years ago

added Memberdetails link

  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1<metal:html tal:define="info context/getStudentFolderInfo;
2                is_so info/is_sectionofficer|nothing;
3                is_staff info/is_staff|nothing;
4                is_student info/is_student">
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        <h3 tal:content="info/name" />
20        <br />
21
22        <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content">     
23          <tr tal:repeat="row rows"
24            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
25            <td><a href="view" tal:attributes="href string:${row/url}">
26              <strong tal:content="row/title" /></a> </td>
27            <td>
28            <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation',)"
29                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
30                target="edit"
31                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')">
32                [edit]
33            </a>
34            <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'"
35                href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
36                target="edit"
37                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')">
38                [edit and change state]
39            </a>             
40            </td>
41          </tr>
42      <tr tal:condition="is_so">
43        <td colspan="3">     
44          <a href=""
45             tal:attributes="href string:${context/portal_url}/portal_directories/students/${info/id}/manage_main">
46            Memberdetails
47          </a>
48        </td>
49      </tr>
50        </table>
51
52    <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
53      <span tal:repeat="row rows">
54        <tr tal:condition="row/display">
55          <td><a href="view" tal:condition="row/s_view_link"
56                 tal:attributes="href string:${row/s_view_link}">
57              <strong tal:content="row/title" /></a>
58           <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
59          </td>
60
61          <td width="80px" align="center">
62            <a tal:condition="python: row['s_edit_link'] and row['is_editable']"
63               href="edit" tal:attributes="href string:${row/s_edit_link}">
64              [edit]
65            </a>     
66          </td>                 
67         
68          <td width="100px" align="left">
69              <span tal:content="row/review_state" />
70          </td>
71
72
73
74        </tr>
75      </span>
76    </table>
77
78       
79      </span>
80    </metal:main>
81  </metal:body>
82</metal:html>
Note: See TracBrowser for help on using the repository browser.