{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'customer'} {/block} {block name="page-title"}{intl l='Customer'}{/block} {block name="check-resource"}admin.customer{/block} {block name="check-access"}view{/block} {block name="main-content"}
| {admin_sortable_header current_order=$customer_order order='reference' reverse_order='reference_reverse' path={url path='/admin/customers'} request_parameter_name='customer_order' label="{intl l='Reference'}" } | {admin_sortable_header current_order=$customer_order order='lastname' reverse_order='lastname_reverse' path={url path='/admin/customers'} request_parameter_name='customer_order' label="{intl l='Last name'}" } | {admin_sortable_header current_order=$customer_order order='firstname' reverse_order='firstname_reverse' path={url path='/admin/customers'} request_parameter_name='customer_order' label="{intl l='First name'}" } | {module_include location='customer_list_header'}{admin_sortable_header current_order=$customer_order order='registration_date' reverse_order='registration_date_reverse' path={url path='/admin/customers'} request_parameter_name='customer_order' label="{intl l='Registration date'}" } | {intl l='Date of last order'} | {intl l='Last order amount'} | {* TODO{admin_sortable_header current_order=$customer_order order='last_order' reverse_order='last_order_reverse' path={url path='/admin/customers'} request_parameter_name='customer_order' label="{intl l='Date of last order'}" } | {admin_sortable_header current_order=$customer_order order='order_amount' reverse_order='order_amount_reverse' path={url path='/admin/customers'} request_parameter_name='customer_order' label="{intl l='Last order amount'}" } | *}{intl l='Actions'} |
|---|---|---|---|---|---|---|---|---|
| {$REF} | {$LASTNAME} | {$FIRSTNAME} | {module_include location='customer_list_row'}{format_date date=$CREATE_DATE} | {$lastOrderDate} | {$lastOrderCurrency} {$lastOrderAmount} |
{loop type="auth" name="can_change" role="ADMIN" resource="admin.customer" access="UPDATE"}
{/loop}
{loop type="auth" name="can_send_mail" role="ADMIN" resource="admin.customer" access="VIEW"}
{/loop}
{loop type="auth" name="can_delete" role="ADMIN" resource="admin.customer" access="DELETE"}
{/loop}
|
||
| {include file = "includes/pagination.html" loop_ref = "customer_list" max_page_count = 10 page_url = "{url path="/admin/customers" customer_order=$customer_order}" } | ||||||||