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

Last change on this file since 1171 was 1171, checked in by Henrik Bettermann, 18 years ago

made login after createReturningStudent work
session_result_view is not yet ready

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