source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/student_view.pt @ 14086

Last change on this file since 14086 was 1988, checked in by joachim, 17 years ago

merged r1979:r1987 from trunk

  • Property svn:keywords set to Id
File size: 6.4 KB
RevLine 
[1218]1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
[1988]3           tal:define="info context/getStudentFolderInfo;
4                       baseinfo context/getStudentBaseInfo">
[1737]5      <metal:block tal:condition="not: info">
[1096]6        <span tal:content="here/illegal_view" />
[1737]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">
[659]14
[911]15      <a href="" tal:condition="is_staff"
[659]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>
[1185]20        <h3 tal:content="info/name" />
[655]21        <br />
[1988]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.courselevel.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        <tr tal:repeat="row rows"
68          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
69          <td><a href="view" tal:attributes="href string:${row/url}">
70            <strong tal:content="row/title" /></a> </td>
71          <td>
72          <a tal:condition="python: row['is_editable'] and not row['type'] in ('StudentClearance','StudentAccommodation','PaymentsFolder')"
73              href="edit" tal:attributes="href string:${row/url}/external_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              [edit]
77          </a>
78          <a tal:condition="python: row['is_editable'] and row['type']=='StudentClearance'"
79              href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
80              target="edit"
81              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')">
82              [edit and change state]
83          </a> 
84          <a tal:condition="python: context.isClearanceOfficer() and row['type']=='StudentClearance'"
85              href="edit" tal:attributes="href string:${row/url}/external_clearance_edit_form"
86              target="edit"
87              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')">
88              [change state]
89          </a>                           
90          </td>
91         
92        </tr>
93        <tr tal:condition="info/session">
94          <td>
95              <a href="edit" tal:attributes="href string:session_results_view">
96              <strong>Session Results</strong>
97          </a>             
98          </td>
99          <td>
100             &nbsp;
101          </td>
102        </tr>
103      </table>
104     
105               
106      <span tal:condition="python:info['member'].id in
107                         ('admin','joachim','kehindesamuel','med','isouaba','obadejo',
108                          'ehioaiks','despej','shinakale','igadoghe','benamechi','edafeohwo')">
109      <br />
110      <form action="mail_password_form" method="post" class="group">
111         <input type="submit" class="context" value="Send Email with Authentication Data" />
112      </form>
113      </span>
[656]114
[1988]115
116     
117
118      <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
119        <span tal:repeat="row rows">
120          <tr tal:condition="row/display">
121            <td width="220px"><a href="view" tal:condition="row/s_view_link"
122                   tal:attributes="href string:${row/s_view_link}">
123                <strong tal:content="row/title" /></a>
124             <strong tal:condition="not:row/s_view_link" tal:content="row/title" />
[656]125            </td>
[1988]126 
127            <td align="left">
128                <span tal:content="row/review_state" />
129            </td>         
[1295]130           
[1988]131            <td width="40px" align="center">
132              <a tal:condition="python: row['s_edit_link'] and row['is_editable']"
133                 href="edit" tal:attributes="href string:${row/s_edit_link}">
134                [edit]
135              </a>     
136            </td>                 
137           
138 
[656]139          </tr>
[1988]140        </span>
141        <tr tal:condition="info/session">
142          <td>
143              <a href="edit" tal:attributes="href string:session_results_view">
144              <strong>Session Results</strong>
145          </a>             
[674]146          </td>
[1988]147          <td>
148             &nbsp;
[674]149          </td>
150        </tr>
[1988]151      </table>
[656]152       
[1737]153    </metal:block>
154    </metal:block>
[655]155    </metal:main>
[1218]156</metal:body>
Note: See TracBrowser for help on using the repository browser.