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

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

is_* keys removed from get* functions

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1<metal:html tal:define="info context/getStudentInfo;
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        <metal:block use-macro="here/error_not_found/macros/not_found" />
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="100%" summary="content layout" id="folder_content">     
46      <span tal:repeat="row rows">
47        <tr tal:condition="row/display"
48            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
49          <td><a href="view" tal:condition="row/s_view_link"
50                 tal:attributes="href string:${row/s_view_link}">
51              <strong tal:content="row/title" /></a>
52           <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
53          </td>
54          <td>
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        </tr>
61      </span>
62    </table>
63
64       
65      </span>
66    </metal:main>
67  </metal:body>
68</metal:html>
Note: See TracBrowser for help on using the repository browser.