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

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

display a list of students for the CourseAdviser?
fix for issue #115
M profiles/default/vocabularies/searchable_student_states.xml
M skins/waeup_default/isCourseAdviser.py
M skins/waeup_student/search_students.py
M skins/waeup_student/get_searchable_student_states.py
M skins/waeup_student/students_index.py
M skins/waeup_student/search_students_form.pt

don't delete courses twice
M skins/waeup_student/course_result_delete.py

more detailed error messages for invalid PINs fix for issue #108
M Widgets.py

inform student to contact faculty, if no courses are available
fix for #116
M skins/waeup_student/study_level_view.pt

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