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

Last change on this file since 5608 was 4392, checked in by Henrik Bettermann, 15 years ago

resolve schools #10

change section titkes (uploads and students)

File size: 5.6 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              allowed options/allowed|nothing;"
8              >
9    <span tal:condition="not: allowed">
10      <span tal:content="here/illegal_view" />
11    </span>
12    <span tal:condition="allowed" tal:omit-tag="">
13      <metal:block use-macro="here/students_actions/macros/students_actions" />
14      <h3> Students Section</h3><br />
15      <span tal:replace="structure rendered" />
16      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
17      <span tal:condition="students">
18        <span tal:define="items students;
19        columns python:3;
20        items_per_page python:40;
21        max_items python:300;
22        zoom python:0;
23        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=5000);
24        batches python:batches_all[0];
25        batch_info python:batches_all[1];
26        zoomed python:batches_all[2];
27        mq nocall:modules/ZTUtils/make_query;"
28        tal:omit-tag="">
29          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
30            <div class="batchLayout" i18n:translate="">
31              Objects:<strong><tal:block replace="batch_info/start"
32                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
33                                                                                 i18n:name="batch_limit" />
34              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
35            </div>
36            <br />
37          </tal:block>
38          <table class="contentListing" width="100%">
39            <span tal:repeat="rows batches" tal:omit-tag="">
40              <span tal:repeat="student rows">
41                <tr tal:condition="student"
42                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
43                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
44                         tal:content="student/id"></a></td>   
45                  <td>
46                    <span tal:replace="student/name" />
47                  </td>   
48                  <td><span tal:replace="student/matric_no" /></td>   
49                  <td><span tal:replace="student/jamb_reg_no" /></td>
50                  <td tal:condition="options/co_view|nothing">
51                    <a href="id"
52                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
53                       target="edit"
54                       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')"
55                       >[view and change state]</a></td>
56                  <td tal:condition="options/ca_view|nothing">
57                    <a href="id"
58                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
59                       target="edit"
60                       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')"
61                       >[view and validate course list]</a></td>
62                </tr>
63              </span>
64            </span>
65          </table>
66          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
67            <div class="pageNavigationLayout">
68              <a tal:define="previous batch_info/previous"
69                 tal:condition="python:previous is not None"
70                 tal:attributes="href python:'%s?%s'%(request['URL'],
71                 mq(request.form, b_start=0))"
72                 >
73              (&lt;&lt;)</a>
74              <a tal:define="previous batch_info/previous"
75                 tal:condition="python:previous is not None"
76                 tal:attributes="href python:'%s?%s'%(request['URL'],
77                 mq(request.form, b_start=previous))"
78                 i18n:translate="batch_previous">Previous</a>
79              <tal:block repeat="page batch_info/pages">
80                <tal:block condition="python:page != batch_info['start'] - 1">
81                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
82                  mq(request.form, b_start=page))"
83                  tal:content="repeat/page/number">1</a>&nbsp;
84                </tal:block>
85                <tal:block condition="python:page == batch_info['start'] - 1">
86                  <span tal:content="string:${repeat/page/number}" />&nbsp;
87                </tal:block>
88              </tal:block>
89              <a tal:define="next batch_info/next"
90                 tal:condition="python:next is not None"
91                 tal:attributes="href python:'%s?%s'%(request['URL'],
92                 mq(request.form, b_start=next))"
93                 i18n:translate="batch_next">Next</a>
94              <a tal:define="next batch_info/next;
95              last_page python:batch_info['pages'][-1]"
96              tal:condition="python:next is not None"
97              tal:attributes="href python:'%s?%s'%(request['URL'],
98              mq(request.form, b_start=last_page))"
99              >
100              (&gt;&gt;)</a>
101            </div>
102          </tal:block>
103        </span>
104      </span>
105    </span>
106  </metal:main>
107</metal:body>
Note: See TracBrowser for help on using the repository browser.