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
RevLine 
[656]1<metal:html tal:define="info context/getStudentInfo;
[913]2                is_so context/isSectionOfficer;
[911]3                is_staff context/isStaff;
[913]4                is_student context/isStudent">
[655]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"
[656]11            tal:define="review_state info/review_state;
12                        rows python: info['items']">
[659]13
[911]14      <a href="" tal:condition="is_staff"
[659]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>
[655]19           
[659]20        <h3 tal:content="info/student/Title" />
[655]21        <br />
[656]22
[911]23        <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content">     
[656]24          <tr tal:repeat="row rows"
25            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[748]26            <td><a href="view" tal:attributes="href string:${row/url}">
[656]27              <strong tal:content="row/title" /></a> </td>
28            <td>
[895]29            <a tal:condition="python: row['is_editable'] and row['type']!='StudentClearance'"
[656]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>
[895]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>             
[656]41            </td>
42          </tr>
43        </table>
[659]44
[674]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"
[659]48            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[674]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]
[659]58            </a>
[674]59          </td>
60        </tr>
61      </span>
62    </table>
[659]63
[656]64       
[655]65      </span>
66    </metal:main>
67  </metal:body>
68</metal:html>
Note: See TracBrowser for help on using the repository browser.