1 | <metal:body use-macro="here/main_template/macros/master"> |
---|
2 | <metal:main fill-slot="main" |
---|
3 | tal:define="info context/getStudentFolderInfo; |
---|
4 | baseinfo context/getStudentBaseInfo"> |
---|
5 | <metal:block tal:condition="not: info"> |
---|
6 | <span tal:content="here/illegal_view" /> |
---|
7 | </metal:block> |
---|
8 | <metal:block tal:condition="info"> |
---|
9 | <metal:block tal:define="review_state info/review_state; |
---|
10 | rows python: info['items']; |
---|
11 | is_so info/is_sectionofficer|nothing; |
---|
12 | is_staff info/is_staff|nothing; |
---|
13 | is_student info/is_student"> |
---|
14 | |
---|
15 | <a href="" tal:condition="is_staff" |
---|
16 | tal:attributes="href string:${here/academicsParent}"> |
---|
17 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
18 | Up one level |
---|
19 | </a> |
---|
20 | <h3 tal:content="info/name" /> |
---|
21 | <br /> |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | <table> |
---|
26 | <tr> |
---|
27 | <td width="220px">Registration Number:</td> |
---|
28 | <td><span tal:content="baseinfo/student/jamb_reg_no" /></td> |
---|
29 | </tr> |
---|
30 | <tr> |
---|
31 | <td>Matriculation Number:</td> |
---|
32 | <td><span tal:content="baseinfo/student/matric_no" /></td> |
---|
33 | </tr> |
---|
34 | <tr> |
---|
35 | <td>Certificate Code:</td> |
---|
36 | <td><span tal:content="baseinfo/student/course" /></td> |
---|
37 | </tr> |
---|
38 | <tr> |
---|
39 | <td>Faculty Id:</td> |
---|
40 | <td tal:content="baseinfo/student/faculty" /> |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <td>Department Id:</td> |
---|
44 | <td><span tal:content="baseinfo/student/department" /></td> |
---|
45 | </tr> |
---|
46 | <tr> |
---|
47 | <td>Current Session:</td> |
---|
48 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(baseinfo['student']['session'])" /></td> |
---|
49 | </tr> |
---|
50 | <tr> |
---|
51 | <td>Current Study Level:</td> |
---|
52 | <td><span tal:content="python:context.portal_vocabularies.levels.get(baseinfo['student']['level'])" /></td> |
---|
53 | </tr> |
---|
54 | <tr> |
---|
55 | <td>Current Study Mode:</td> |
---|
56 | <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(baseinfo['student']['mode'])" /></td> |
---|
57 | </tr> |
---|
58 | <tr tal:define="verdict python:context.portal_vocabularies.verdicts.get(baseinfo['student']['verdict'])"> |
---|
59 | <td>Current Verdict:</td> |
---|
60 | <td><span tal:condition="verdict" tal:content="python:verdict.upper()" /></td> |
---|
61 | </tr> |
---|
62 | </table> |
---|
63 | |
---|
64 | <br /> |
---|
65 | |
---|
66 | <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
67 | |
---|
68 | <span tal:repeat="row rows"> |
---|
69 | <tr tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
70 | <td><a href="view" tal:attributes="href string:${row/url}"> |
---|
71 | <strong tal:content="row/title" /></a> </td> |
---|
72 | <td> |
---|
73 | <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation','PaymentsFolder')" |
---|
74 | href="edit" tal:attributes="href string:${row/url}/external_edit_form" |
---|
75 | target="edit" |
---|
76 | 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')"> |
---|
77 | [edit] |
---|
78 | </a> |
---|
79 | <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'" |
---|
80 | href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form" |
---|
81 | target="edit" |
---|
82 | 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')"> |
---|
83 | [edit and change state] |
---|
84 | </a> |
---|
85 | <a tal:condition="python: context.isClearanceOfficer() and row['type']=='StudentClearance'" |
---|
86 | href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form" |
---|
87 | target="edit" |
---|
88 | 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')"> |
---|
89 | [change state] |
---|
90 | </a> |
---|
91 | </td> |
---|
92 | |
---|
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</strong> |
---|
99 | </a> |
---|
100 | </td> |
---|
101 | <td> |
---|
102 | |
---|
103 | </td> |
---|
104 | </tr> |
---|
105 | </table> |
---|
106 | |
---|
107 | |
---|
108 | |
---|
109 | <form action="mail_password_form" method="post" class="group" |
---|
110 | tal:condition="is_staff" |
---|
111 | tal:attributes="action string:${context/absolute_url}/mail_password_form"> |
---|
112 | <br /> |
---|
113 | <input type="submit" class="context" value="Send Email with Authentication Data" /> |
---|
114 | </form> |
---|
115 | |
---|
116 | |
---|
117 | <div tal:condition="python:info['review_state']=='deactivated'"> |
---|
118 | <font color="red">This student record has been deactivated!</font> |
---|
119 | </div> |
---|
120 | |
---|
121 | |
---|
122 | <table tal:condition="python:is_student and info['review_state']!='deactivated'" class="contentListing" width="" summary="content layout" id="folder_content"> |
---|
123 | <span tal:repeat="row rows"> |
---|
124 | <tr tal:condition="row/display"> |
---|
125 | <td width="220px"><a href="view" tal:condition="row/s_view_link" |
---|
126 | tal:attributes="href string:${row/s_view_link}"> |
---|
127 | <strong tal:content="row/title" /></a> |
---|
128 | <strong tal:condition="not:row/s_view_link" tal:content="row/title" /> |
---|
129 | </td> |
---|
130 | |
---|
131 | <td align="left"> |
---|
132 | <span tal:content="row/review_state" /> |
---|
133 | </td> |
---|
134 | |
---|
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 | |
---|
142 | |
---|
143 | </tr> |
---|
144 | </span> |
---|
145 | <tr tal:condition="info/session"> |
---|
146 | <td> |
---|
147 | <a href="edit" tal:attributes="href string:session_results_view"> |
---|
148 | <strong>Session Results</strong> |
---|
149 | </a> |
---|
150 | </td> |
---|
151 | <td> |
---|
152 | |
---|
153 | </td> |
---|
154 | </tr> |
---|
155 | </table> |
---|
156 | |
---|
157 | |
---|
158 | </metal:block> |
---|
159 | </metal:block> |
---|
160 | </metal:main> |
---|
161 | </metal:body> |
---|