View | Details | Raw Unified | Return to bug 23094
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-37 / +31 lines)
Lines 261-292 Link Here
261
[% IF ( batch_list ) %]
261
[% IF ( batch_list ) %]
262
262
263
[% IF ( pages ) %]
263
[% IF ( pages ) %]
264
    <nav>
264
    [% PROCESS pagination %]
265
        <ul class="pagination">
266
            [% FOREACH page IN pages %]
267
                [% IF ( page.current_page && page.page_number > 1 ) %]
268
                    <li><a href="[% page.script_name | url %]?offset=0" class="nav"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li>
269
                    <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>
270
                [% END %]
271
            [% END %]
272
            [% FOREACH page IN pages %]
273
                [% IF ( page.current_page ) %]
274
                    [% SET current_page = page.page_number %]
275
                    <li class="active"><span class="current">[% page.page_number | html %]</span></li>
276
                [% ELSE %]
277
                    <li><a class="nav" href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a></li>
278
                [% END %]
279
            [% END %]
280
            [% IF ( current_page < pages.size() ) %]
281
                <li>
282
                    <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>
283
                </li>
284
                <li>
285
                    <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>
286
                </li>
287
            [% END %]
288
        </ul>
289
    </nav>
290
[% END %]
265
[% END %]
291
266
292
<table>
267
<table>
Lines 345-361 Link Here
345
  </tr>
320
  </tr>
346
  [% END %]
321
  [% END %]
347
</table>
322
</table>
348
  [% IF ( pages ) %]
323
    [% IF ( pages ) %]
349
<div class="pages">
324
        [% PROCESS pagination %]
350
    [% FOREACH page IN pages %]
351
      [% IF ( page.current_page ) %]
352
      <span class="current">[% page.page_number | html %]</span>
353
      [% ELSE %]
354
      <a href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a>
355
      [% END %]
356
    [% END %]
325
    [% END %]
357
</div>
358
  [% END %]
359
[% END %]
326
[% END %]
360
327
361
[% IF import_batch_id %]
328
[% IF import_batch_id %]
Lines 530-532 Link Here
530
[% END %]
497
[% END %]
531
498
532
[% INCLUDE 'intranet-bottom.inc' %]
499
[% INCLUDE 'intranet-bottom.inc' %]
533
- 
500
[% BLOCK pagination %]
501
    <nav>
502
        <ul class="pagination">
503
            [% FOREACH page IN pages %]
504
                [% IF ( page.current_page && page.page_number > 1 ) %]
505
                    <li><a href="[% page.script_name | url %]?offset=0" class="nav"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li>
506
                    <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>
507
                [% END %]
508
            [% END %]
509
            [% FOREACH page IN pages %]
510
                [% IF ( page.current_page ) %]
511
                    [% SET current_page = page.page_number %]
512
                    <li class="active"><span class="current">[% page.page_number | html %]</span></li>
513
                [% ELSE %]
514
                    <li><a class="nav" href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a></li>
515
                [% END %]
516
            [% END %]
517
            [% IF ( current_page < pages.size() ) %]
518
                <li>
519
                    <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>
520
                </li>
521
                <li>
522
                    <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>
523
                </li>
524
            [% END %]
525
        </ul>
526
    </nav>
527
[% END %]

Return to bug 23094