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

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

student's navigation modified

File size: 2.9 KB
Line 
1<metal:html tal:define="info context/getStudentInfo;
2                is_manager info/is_manager|nothing;
3                is_student info/is_student|nothing">
4  <metal:body use-macro="here/main_template/macros/master">
5    <metal:main fill-slot="main">
6      <span tal:condition="not: info">
7        <metal:block use-macro="here/error_not_found/macros/not_found" />
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_manager"
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           
19        <h3 tal:content="info/student/Title" />
20        <br />
21
22        <table tal:condition="is_manager" 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="row/is_editable"
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            </td>
35          </tr>
36        </table>
37
38        <table tal:condition="is_student" class="contentListing" width="100%" summary="content layout" id="folder_content">     
39          <span tal:repeat="row rows">
40          <tr tal:condition="python:row['type'] == 'StudentApplication' and row['review_state'] in ['opened', 'closed']"
41            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
42            <td><a href="view" tal:attributes="href string:${row/url}/application_view">
43              <strong tal:content="row/title" /></a> </td>
44            <td>
45            <a tal:condition="row/is_editable"
46                href="edit" tal:attributes="href string:${info/url}/passport_entry_view">
47                [edit]
48            </a>
49            </td>
50          </tr>
51         
52          <tr tal:condition="python:row['type'] == 'StudentAccommodation' and row['review_state'] in ['opened', 'closed']"
53            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
54            <td><a href="view" tal:attributes="href string:${row/url}/accommodation_view">
55              <strong tal:content="row/title" /></a> </td>
56            <td>
57            </td>
58          </tr>
59         
60          </span>
61        </table>
62
63       
64      </span>
65    </metal:main>
66  </metal:body>
67</metal:html>
Note: See TracBrowser for help on using the repository browser.