source: WAeUP_SRP/base/skins/waeup_student/student_view.pt @ 2659

Last change on this file since 2659 was 2640, checked in by joachim, 17 years ago

fix for #207

  • Property svn:keywords set to Id
File size: 6.6 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 context/getStudentBaseInfo"
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/student/jamb_reg_no" /></td>
27          </tr>
28          <tr>
29            <td>Matriculation Number:</td>
30            <td><span tal:content="baseinfo/student/matric_no" /></td>
31          </tr>     
32          <tr>
33            <td>Certificate Code:</td>
34            <td><span tal:content="baseinfo/student/course" /></td>
35          </tr>
36          <tr>
37            <td>Faculty Id:</td>
38            <td tal:content="baseinfo/student/faculty" />
39          </tr>
40          <tr>
41            <td>Department Id:</td>
42            <td><span tal:content="baseinfo/student/department" /></td>
43          </tr>
44          <tr>
45            <td>Current Session:</td>
46            <td><span tal:content="python:context.portal_vocabularies.sessions.get(baseinfo['student']['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['student']['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['student']['mode'])" /></td>
55          </tr>       
56          <tr tal:define="verdict python:context.portal_vocabularies.verdicts.get(baseinfo['student']['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          <span tal:repeat="row rows">
64            <tr tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
65              <td><a href="view" tal:attributes="href string:${row/url}">
66                  <strong tal:content="row/title" /></a> </td>
67              <td>
68                <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation','PaymentsFolder')"
69                   href="edit" tal:attributes="href string:${row/url}/external_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                  [edit]
73                </a>
74                <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'"
75                   href="edit" tal:attributes="href string:${row/url}/external_clearance_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 and change state]
79                </a> 
80                <a tal:condition="python: context.isClearanceOfficer() 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=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
84                  [change state]
85                </a>                           
86              </td>
87            </tr>
88          </span>
89          <tr tal:condition="info/session">
90            <td>
91              <a href="edit" tal:attributes="href string:session_results_view">
92                <strong>Session Results</strong>
93              </a>             
94            </td>
95            <td>
96              &nbsp;
97            </td>
98          </tr>
99        </table>
100        <form action="mail_password_form" method="post" class="group"
101              tal:condition="is_staff"
102              tal:attributes="action string:${context/absolute_url}/mail_password_form">
103          <br />
104          <input type="submit" class="context" value="Send Email with Authentication Data" />
105        </form>
106        <div tal:condition="python:info['review_state']=='deactivated'">
107          <font color="red">This student record has been deactivated!</font>
108        </div>
109        <table tal:condition="python:is_student and info['review_state']!='deactivated'" class="contentListing" width="" summary="content layout" id="folder_content">     
110          <span tal:repeat="row rows">
111            <tr tal:condition="row/display">
112              <td width="220px"><a href="view" tal:condition="row/s_view_link"
113                                   tal:attributes="href string:${row/s_view_link}">
114                  <strong tal:content="row/title" /></a>
115                <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
116              </td>
117              <td align="left">
118                <span tal:content="row/review_state" />
119              </td>         
120              <td width="40px" align="center">
121                <a tal:condition="python: row['s_edit_link'] and row['is_editable']"
122                   href="edit" tal:attributes="href string:${row/s_edit_link}">
123                  [edit]
124                </a>     
125              </td>                 
126            </tr>
127          </span>
128          <tr tal:condition="info/session">
129            <td>
130              <a href="edit" tal:attributes="href string:session_results_view">
131                <strong>Session Results</strong>
132              </a>             
133            </td>
134            <td>
135              &nbsp;
136            </td>
137          </tr>
138        </table>
139      </metal:block>
140    </metal:block>
141  </metal:main>
142</metal:body>
Note: See TracBrowser for help on using the repository browser.