source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_student/search_students_form.pt @ 13627

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

edit links removed or changed for SOs

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