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

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

syntax error fixed

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