source: WAeUP_SRP/base/skins/waeup_student/search_students_form.pt @ 2660

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

close also objects in state created

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