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

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