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

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

student_status title and labels renamed
StudentAccommodation? not editable

  • Property svn:keywords set to Id
File size: 3.2 KB
RevLine 
[1049]1<metal:html tal:define="info python:context.getStudentInfo(with_items=1);
[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">
[1096]8        <span tal:content="here/illegal_view" />
[655]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>
[1139]29            <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation',)"
[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
[1132]45    <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
[674]46      <span tal:repeat="row rows">
[1132]47        <tr tal:condition="row/display">
[674]48          <td><a href="view" tal:condition="row/s_view_link"
49                 tal:attributes="href string:${row/s_view_link}">
50              <strong tal:content="row/title" /></a>
51           <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
52          </td>
[1132]53
54          <td width="80px" align="center">
[674]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]
[1132]58            </a>     
59          </td>                 
60         
61          <td width="100px" align="left">
62              <span tal:content="row/review_state" />
[674]63          </td>
[1132]64
65
66
[674]67        </tr>
68      </span>
69    </table>
[659]70
[656]71       
[655]72      </span>
73    </metal:main>
74  </metal:body>
75</metal:html>
Note: See TracBrowser for help on using the repository browser.