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