From 91161ab695e3c6bbb83da32051729671598f8f88 Mon Sep 17 00:00:00 2001 From: alexian dugour Date: Thu, 24 Jul 2014 12:47:27 +0200 Subject: [PATCH] Add pagination to customer-edit modified: templates/backOffice/default/customer-edit.html --- .../backOffice/default/customer-edit.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/templates/backOffice/default/customer-edit.html b/templates/backOffice/default/customer-edit.html index 62bdf1765..fd14c4cb9 100644 --- a/templates/backOffice/default/customer-edit.html +++ b/templates/backOffice/default/customer-edit.html @@ -275,7 +275,7 @@ - {loop type="order" name="order-list" customer="{$customer_id}" backend_context="1" status='*'} + {loop type="order" name="order-list" customer="{$customer_id}" backend_context="1" status='*' page={$page} limit=10} {loop type="order-status" name="order-status" id=$STATUS} {assign "orderStatus" $TITLE} {assign "orderStatusLabel" "order_$CODE"} @@ -290,6 +290,20 @@ {/loop} + + + + {include + file = "includes/pagination.html" + + loop_ref = "order-list" + max_page_count = 10 + page_url = "{url path="/admin/customer/update" customer_id=$customer_id}" + } + + + + @@ -466,4 +480,4 @@ {block name="javascript-last-call"} {module_include location='customer-edit-js'} -{/block} \ No newline at end of file +{/block}