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

Last change on this file since 3700 was 3700, checked in by Henrik Bettermann, 16 years ago

more customizations for OIS

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