source: WAeUP_SRP/trunk/skins/waeup_ois/student_view.pt @ 17389

Last change on this file since 17389 was 4305, checked in by Henrik Bettermann, 15 years ago

replace deprecated align attribute (right and center)

File size: 7.5 KB
RevLine 
[3700]1<metal:body use-macro="here/main_template/macros/master">
2  <metal:main fill-slot="main"
3              tal:define="info context/getStudentFolderInfo;
4                          baseinfo info/base_info|nothing"
5              >
6    <metal:block tal:condition="not: info">
7      <span tal:content="here/illegal_view" />
8    </metal:block>
9    <metal:block tal:condition="info">
10      <metal:block tal:define="review_state info/review_state;
11      rows python: info['items'];
12      is_so info/is_sectionofficer|nothing;
13      is_staff info/is_staff|nothing;
14      is_student info/is_student"
15      >
16        <a href="" tal:condition="is_staff"
17           tal:attributes="href string:${here/academicsParent}">
18          <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
19          Up one level
20        </a>
21        <h3 tal:content="info/name" />
22        <br />
23        <table>
24          <tr>
[3707]25            <td>Registration Number:</td>
[3700]26            <td><span tal:content="baseinfo/matric_no" /></td>
27          </tr>     
28          <tr>
29            <td>Certificate Code:</td>
30            <td><span tal:content="baseinfo/course" /></td>
31          </tr>
32          <tr>
33            <td>Current Session:</td>
34            <td><span tal:content="python:context.portal_vocabularies.sessions.get(baseinfo['session'])" /></td>
35          </tr>
36          <tr>
37            <td>Current Study Level:</td>
38            <td><span tal:content="python:context.portal_vocabularies.student_levels.get(baseinfo['level'])" /></td>
39          </tr>
[3727]40          <tr tal:condition="is_staff">
[3700]41            <td>Current Study Mode:</td>
42            <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(baseinfo['mode'])" /></td>
43          </tr>       
[3727]44          <tr tal:define="verdict python:context.portal_vocabularies.verdicts.get(baseinfo['verdict'])"
45              tal:condition="is_staff">
[3700]46            <td>Current Verdict:</td>
47            <td><span tal:condition="verdict" tal:content="python:verdict.upper()" /></td>
48          </tr>
49        </table>           
50        <br />
51        <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content">     
52          <span tal:repeat="row rows">
53            <tr tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
54              <td><a href="view" tal:attributes="href string:${row/url}">
55                  <strong tal:content="row/title" /></a> </td>
56              <td>
57                <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation','PaymentsFolder')"
58                   href="edit" tal:attributes="href string:${row/url}/external_edit_form"
59                   target="edit"
60                   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')">
61                  [edit]
62                </a>
63                <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'"
64                   href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
65                   target="edit"
66                   onclick="javascript:window.open('','edit','width=700, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
67                  [edit and change state]
68                </a> 
69                <a tal:condition="python: context.isClearanceOfficer() and row['type']=='StudentClearance'"
70                   href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
71                   target="edit"
72                   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')">
73                  [change state]
74                </a>                           
75              </td>
76            </tr>
77          </span>
78          <tr tal:condition="info/session">
79            <td>
80              <a href="edit" tal:attributes="href string:session_results_view">
81                <strong>Session Results 2005/2006</strong>
82              </a>             
83            </td>
84            <td>
85              &nbsp;
86            </td>
87          </tr>
88        </table>
89        <form action="mail_password_form" method="post" class="group"
90              tal:condition="is_staff"
91              tal:attributes="action string:${context/absolute_url}/mail_password_form">
92          <br />
93          <input type="submit" class="context" value="Send Email with Authentication Data" />
94        </form>
95       
96       
97       
98       
99        <form action="" method="post" class="group"
100              tal:condition="info/transition_return_allowed"
101              tal:attributes="action string:${context/absolute_url}/changeRegState">
102          <input type="submit" class="context" value="Execute Transition 'return'" />
103          <input type="hidden" name="transition"
104                 tal:attributes="value string:return"
105                 /> &nbsp; <br /><br />     
106          <font color='red'>Attention: This low-level method does not change the study course and/or payment objects! They must be edited separately.</font>
107        </form>       
108       
109        <form action="" method="post" class="group"
110              tal:condition="info/transition_pay_school_fee_allowed"
111              tal:attributes="action string:${context/absolute_url}/changeRegState">
112          <input type="submit" class="context" value="Execute Transition 'pay_school_fee'" />
113          <input type="hidden" name="transition"
114                 tal:attributes="value string:pay_school_fee"
115                 /> &nbsp; <br /><br />
116          <font color='red'>Attention: This low-level method does not change the study course and/or payment objects! They must be edited separately.</font>
117        </form>             
118   
119   
120       
121       
122        <div tal:condition="python:info['review_state']=='deactivated'">
123          <font color="red">This student record has been deactivated!</font>
124        </div>
125        <table tal:condition="python:is_student and info['review_state']!='deactivated'" class="contentListing" width="" summary="content layout" id="folder_content">     
126          <span tal:repeat="row rows">
127            <tr tal:condition="row/display">
128              <td width="220px"><a href="view" tal:condition="row/s_view_link"
129                                   tal:attributes="href string:${row/s_view_link}">
130                  <strong tal:content="row/title" /></a>
131                <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
132              </td>
133              <td align="left">
134                <span tal:content="row/review_state" />
135              </td>         
[4305]136              <td width="40px" style='text-align:center'>
[3700]137                <a tal:condition="python: row['s_edit_link'] and row['is_editable']"
138                   href="edit" tal:attributes="href string:${row/s_edit_link}">
139                  [edit]
140                </a>     
141              </td>                 
142            </tr>
143          </span>
144          <tr tal:condition="info/session">
145            <td>
146              <a href="edit" tal:attributes="href string:session_results_view">
147                <strong>Session Results 2005/2006</strong>
148              </a>             
149            </td>
150            <td>
151              &nbsp;
152            </td>
153          </tr>
154        </table>
155      </metal:block>
156    </metal:block>
157  </metal:main>
158</metal:body>
Note: See TracBrowser for help on using the repository browser.