Add pagination to customer-edit
modified: templates/backOffice/default/customer-edit.html
This commit is contained in:
@@ -275,7 +275,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{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 @@
|
||||
</tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
{include
|
||||
file = "includes/pagination.html"
|
||||
|
||||
loop_ref = "order-list"
|
||||
max_page_count = 10
|
||||
page_url = "{url path="/admin/customer/update" customer_id=$customer_id}"
|
||||
}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -466,4 +480,4 @@
|
||||
|
||||
{block name="javascript-last-call"}
|
||||
{module_include location='customer-edit-js'}
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user