Merge pull request #547 from alexian530/alexian530-branch
Add pagination to customer-edit
This commit is contained in:
@@ -275,7 +275,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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}
|
{loop type="order-status" name="order-status" id=$STATUS}
|
||||||
{assign "orderStatus" $TITLE}
|
{assign "orderStatus" $TITLE}
|
||||||
{assign "orderStatusLabel" "order_$CODE"}
|
{assign "orderStatusLabel" "order_$CODE"}
|
||||||
@@ -290,6 +290,20 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{/loop}
|
{/loop}
|
||||||
</tbody>
|
</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>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -466,4 +480,4 @@
|
|||||||
|
|
||||||
{block name="javascript-last-call"}
|
{block name="javascript-last-call"}
|
||||||
{module_include location='customer-edit-js'}
|
{module_include location='customer-edit-js'}
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
Reference in New Issue
Block a user