From f7ad627b4d12ee89a8554dfaf480eed8d0f975a7 Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Thu, 21 Nov 2013 18:28:25 +0100 Subject: [PATCH] // fix pagination Tax Rules Group --- .../tax_rules/helpers/list/list_footer.tpl | 133 ++++++++++++------ 1 file changed, 90 insertions(+), 43 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl index 150d2a409..add55b9f4 100644 --- a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl +++ b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl @@ -24,25 +24,26 @@ *} - - {if $bulk_actions} -
+
+
+ {if $bulk_actions} +
- {/if} - - {if !$simple_header && $list_total > 20} -
- - {if $page > 1} -   - - {/if} - {l s='Page'} {$page} / {$total_pages} - {if $page < $total_pages} -   - {/if} +
+ {if !$simple_header && $list_total > $pagination[0]} +
+ {* Choose number of results per page *} + + {l s='Display'}: + + + / {$list_total} {l s='result(s)'} + + +
    +
  • + + + +
  • +
  • + + + +
  • + {assign p 0} + {while $p++ < $total_pages} + {if $p < $page-2} +
  • + +
  • + {assign p $page-3} + {else if $p > $page+2} +
  • + +
  • + {assign p $total_pages} + {else} +
  • + {$p} +
  • + {/if} + {/while} +
  • = $total_pages}class="disabled"{/if}> + + + +
  • +
  • = $total_pages}class="disabled"{/if}> + + + +
  • +
+
{/if} - - - +
{if !$simple_header}