Merge pull request #547 from alexian530/alexian530-branch
Add pagination to customer-edit
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>
|
||||
|
||||
Reference in New Issue
Block a user