source: WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt @ 2162

Last change on this file since 2162 was 2157, checked in by Henrik Bettermann, 17 years ago

make managing application records work

File size: 7.3 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
3            tal:define="rendered options/rendered;
4            portal_status_message options/psm;
5            students options/students;
6            info options/info|nothing;
7            is_so context/isSectionOfficer;
8            allowed options/allowed|nothing;"
9            >
10      <span tal:condition="not: allowed">
11        <span tal:content="here/illegal_view" />
12      </span>
13      <span tal:condition="allowed" tal:omit-tag="">
14     
15      <strong>
16      <nobr><a href="statistics_new_view">New Student Statistics</a>
17      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
18      <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
19      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
20      <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
21      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>     
22      <nobr><a href="apply_pume_manage">Application Process</a>
23      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>         
24      <span tal:condition="is_so">
25         <nobr><a href="view_logs">View Log Files</a>
26         &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
27         <nobr><a href="add_student">Add Student Record</a>       
28         &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
29         <nobr><a href="paid_transfer_list">Export Transfer Students</a>
30         &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
31         <nobr><a href="list_students">Cleared Student Export</a></nobr>             
32      </span>
33      </strong>
34   
35             
36        <h3> Search Student Section</h3><br />
37          You are logged in as member <span tal:replace="info/member|nothing" />
38          <span tal:condition="info/faculties|nothing" tal:omit-tag="">
39            who is ClearanceOfficer for Faculty
40            <span tal:repeat="faculty info/faculties" tal:content="faculty" />
41          </span>
42          <span tal:condition="info/departments|nothing" tal:omit-tag="">
43            and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
44          <br /><br />
45        <span tal:replace="structure rendered" />
46        <span tal:condition="students">
47          <span
48              tal:define="items students;
49              columns python:3;
50              items_per_page python:40;
51              max_items python:300;
52              zoom python:0;
53              batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
54              batches python:batches_all[0];
55              batch_info python:batches_all[1];
56              zoomed python:batches_all[2];
57              mq nocall:modules/ZTUtils/make_query;"
58              tal:omit-tag=""
59              >
60            <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
61              <div class="batchLayout">
62                <span i18n:translate="">
63                  Objects:
64                  <strong>
65                    <tal:block replace="batch_info/start"
66                               i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
67                                                                       i18n:name="batch_limit" />
68                  </strong>
69                  of <tal:block replace="batch_info/length"
70                                i18n:name="batch_length" />
71                </span>
72              </div>
73              <br />
74            </tal:block>
75            <table class="contentListing" width="100%">
76              <span tal:repeat="rows batches" tal:omit-tag="">
77                <span tal:repeat="student rows">
78                  <tr tal:condition="student"
79                      tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
80                    <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
81                           tal:content="student/id"></a></td>   
82                    <td>
83                      <span tal:replace="student/name" />
84                    </td>   
85                    <td><span tal:replace="student/matric_no" /></td>   
86                    <td><span tal:replace="student/jamb_reg_no" /></td>
87                    <td tal:condition="options/co_view|nothing">
88                      <a href="id"
89                         tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
90                         target="edit"
91                         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')"
92                         >[view and change state]</a></td>
93                    <td tal:condition="options/ca_view|nothing">
94                      <a href="id"
95                         tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/study_course/${student/level}/external_study_level_view"
96                         target="edit"
97                         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')"
98                         >[view and validate course list]</a></td>
99                  </tr>
100                </span>
101              </span>
102            </table>
103            <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
104              <div class="pageNavigationLayout">
105                <a tal:define="previous batch_info/previous"
106                   tal:condition="python:previous is not None"
107                   tal:attributes="href python:'%s?%s'%(request['URL'],
108                   mq(request.form, b_start=0))"
109                   >
110                (&lt;&lt;)</a>
111                <a tal:define="previous batch_info/previous"
112                   tal:condition="python:previous is not None"
113                   tal:attributes="href python:'%s?%s'%(request['URL'],
114                   mq(request.form, b_start=previous))"
115                   i18n:translate="batch_previous">Previous</a>
116                <tal:block repeat="page batch_info/pages">
117                  <tal:block condition="python:page != batch_info['start'] - 1">
118                    <a tal:attributes="href python:'%s?%s'%(request['URL'],
119                    mq(request.form, b_start=page))"
120                    tal:content="repeat/page/number">1</a>&nbsp;
121                  </tal:block>
122                  <tal:block condition="python:page == batch_info['start'] - 1">
123                    <span tal:content="string:${repeat/page/number}" />&nbsp;
124                  </tal:block>
125                </tal:block>
126                <a tal:define="next batch_info/next"
127                   tal:condition="python:next is not None"
128                   tal:attributes="href python:'%s?%s'%(request['URL'],
129                   mq(request.form, b_start=next))"
130                   i18n:translate="batch_next">Next</a>
131                <a tal:define="next batch_info/next;
132                last_page python:batch_info['pages'][-1]"
133                tal:condition="python:next is not None"
134                tal:attributes="href python:'%s?%s'%(request['URL'],
135                mq(request.form, b_start=last_page))"
136                >
137                (&gt;&gt;)</a>
138              </div>
139            </tal:block>
140          </span>
141        </span>
142      </span>
143    </metal:main>
144</metal:body>
145 
Note: See TracBrowser for help on using the repository browser.