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

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

added two more members

  • Property svn:keywords set to Id
File size: 4.8 KB
RevLine 
[1218]1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
[1737]3           tal:define="info context/getStudentFolderInfo;">
4      <metal:block tal:condition="not: info">
[1096]5        <span tal:content="here/illegal_view" />
[1737]6      </metal:block>
7      <metal:block tal:condition="info">
8      <metal:block tal:define="review_state info/review_state;
9                        rows python: info['items'];
10                        is_so info/is_sectionofficer|nothing;
11                        is_staff info/is_staff|nothing;
12                        is_student info/is_student">
[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>
[1185]19        <h3 tal:content="info/name" />
[655]20        <br />
[656]21
[911]22        <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content">     
[656]23          <tr tal:repeat="row rows"
24            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[748]25            <td><a href="view" tal:attributes="href string:${row/url}">
[656]26              <strong tal:content="row/title" /></a> </td>
27            <td>
[1139]28            <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation',)"
[656]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>
[895]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]
[1472]39            </a> 
40            <a tal:condition="python: context.isClearanceOfficer() and row['type']=='StudentClearance'"
41                href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
42                target="edit"
43                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')">
44                [change state]
45            </a>                           
[656]46            </td>
[1295]47           
[656]48          </tr>
[1359]49          <tr tal:condition="info/session">
[1295]50            <td>
51                <a href="edit" tal:attributes="href string:session_results_view">
52                <strong>Session Results</strong>
53            </a>             
54            </td>
55            <td>
56               &nbsp;
57            </td>
58          </tr>
[656]59        </table>
[1254]60       
61                 
[1795]62         <span tal:condition="python:info['member'].id in
63                             ('admin','joachim','kehindesamuel','med','isouaba','obadejo',
64                              'ehioaiks','despej','shinakale','igadoghe','benamechi','edafeohwo')">
[1254]65         <br />
66         <form action="mail_password_form" method="post" class="group">
[1293]67            <input type="submit" class="context" value="Send Email with Authentication Data" />
[1254]68         </form>
69         </span>
[659]70
[1254]71
72       
73
[1132]74    <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
[674]75      <span tal:repeat="row rows">
[1132]76        <tr tal:condition="row/display">
[674]77          <td><a href="view" tal:condition="row/s_view_link"
78                 tal:attributes="href string:${row/s_view_link}">
79              <strong tal:content="row/title" /></a>
80           <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
81          </td>
[1132]82
83          <td width="80px" align="center">
[674]84            <a tal:condition="python: row['s_edit_link'] and row['is_editable']"
85               href="edit" tal:attributes="href string:${row/s_edit_link}">
86              [edit]
[1132]87            </a>     
88          </td>                 
89         
90          <td width="100px" align="left">
91              <span tal:content="row/review_state" />
[674]92          </td>
93        </tr>
94      </span>
[1359]95      <tr tal:condition="info/session">
[1295]96        <td>
97            <a href="edit" tal:attributes="href string:session_results_view">
98            <strong>Session Results</strong>
99        </a>             
100        </td>
101        <td>
102           &nbsp;
103        </td>
104      </tr>
[674]105    </table>
[656]106       
[1737]107    </metal:block>
108    </metal:block>
[655]109    </metal:main>
[1218]110</metal:body>
Note: See TracBrowser for help on using the repository browser.