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