Lines 312-326
Link Here
|
312 |
|
312 |
|
313 |
[% IF ( batch_list ) %] |
313 |
[% IF ( batch_list ) %] |
314 |
[% IF ( pages ) %] |
314 |
[% IF ( pages ) %] |
315 |
<div class="pages"> |
315 |
[% PROCESS pagination %] |
316 |
[% FOREACH page IN pages %] |
|
|
317 |
[% IF ( page.current_page ) %] |
318 |
<span class="current">[% page.page_number | html %]</span> |
319 |
[% ELSE %] |
320 |
<a href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a> |
321 |
[% END %] |
322 |
[% END %] |
323 |
</div> |
324 |
[% END %] |
316 |
[% END %] |
325 |
|
317 |
|
326 |
<table> |
318 |
<table> |
Lines 381-395
Link Here
|
381 |
</table> |
373 |
</table> |
382 |
|
374 |
|
383 |
[% IF ( pages ) %] |
375 |
[% IF ( pages ) %] |
384 |
<div class="pages"> |
376 |
[% PROCESS pagination %] |
385 |
[% FOREACH page IN pages %] |
|
|
386 |
[% IF ( page.current_page ) %] |
387 |
<span class="current">[% page.page_number | html %]</span> |
388 |
[% ELSE %] |
389 |
<a href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a> |
390 |
[% END %] |
391 |
[% END %] |
392 |
</div> |
393 |
[% END %] |
377 |
[% END %] |
394 |
[% END # /IF batch_lis %] |
378 |
[% END # /IF batch_lis %] |
395 |
|
379 |
|
Lines 565-567
Link Here
|
565 |
</script> |
549 |
</script> |
566 |
[% END %] |
550 |
[% END %] |
567 |
[% INCLUDE 'intranet-bottom.inc' %] |
551 |
[% INCLUDE 'intranet-bottom.inc' %] |
568 |
- |
552 |
[% BLOCK pagination %] |
|
|
553 |
<nav> |
554 |
<ul class="pagination"> |
555 |
[% FOREACH page IN pages %] |
556 |
[% IF ( page.current_page && page.page_number > 1 ) %] |
557 |
<li><a href="[% page.script_name | url %]?offset=0" class="nav"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li> |
558 |
<li><a href="[% page.script_name | url %]?offset=[% offset - results_per_page | uri %]"><i class="fa fa-fw fa-angle-left"></i> Previous</a></li> |
559 |
[% END %] |
560 |
[% END %] |
561 |
[% FOREACH page IN pages %] |
562 |
[% IF ( page.current_page ) %] |
563 |
[% SET current_page = page.page_number %] |
564 |
<li class="active"><span class="current">[% page.page_number | html %]</span></li> |
565 |
[% ELSE %] |
566 |
<li><a class="nav" href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a></li> |
567 |
[% END %] |
568 |
[% END %] |
569 |
[% IF ( current_page < pages.size() ) %] |
570 |
<li> |
571 |
<a href="[% page.script_name | url %]?offset=[% offset + results_per_page | uri %]" class="nav">Next <i class="fa fa-fw fa-angle-right"></i></a> |
572 |
</li> |
573 |
<li> |
574 |
<a href="[% page.script_name | url %]?offset=[% ( results_per_page * ( pages.size - 1 ) ) | uri %]" class="nav">Last <i class="fa fa-fw fa-angle-double-right"></i></a> |
575 |
</li> |
576 |
[% END %] |
577 |
</ul> |
578 |
</nav> |
579 |
[% END %] |