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

Last change on this file since 5616 was 5616, checked in by Henrik Bettermann, 14 years ago

Implement second part of new accommodation allocation module. This part contains the new scripts and page templates needed. See ReadMe?.txt for further instructions.

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