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

Last change on this file since 1316 was 1312, checked in by joachim, 18 years ago

new list_students.py exports all cleared students as csv (in custom)

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