{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'}" } | {hook name="customers.header" 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} | {hook name="customers.row" location="customer_list_row" customer_id={$ID}}{format_date date=$CREATE_DATE} | {$lastOrderDate} | {$lastOrderCurrency} {$lastOrderAmount} | {if $hasOrders} {$deleteClass = 'disabled'} {$deleteTitle = {intl l='This customer has orders, and can\'t be deleted.'}} {$deleteHref = ''} {else} {$deleteClass = 'customer-delete'} {$deleteTitle = {intl l='Delete this customer and all his orders'}} {$deleteHref = '#delete_customer_dialog'} {/if} {include file='renderer/buttons.html' buttons=[ [ 'type' => 'edit', 'title' => {intl l='Edit this customer'}, 'href' => {url path='/admin/customer/update' customer_id=$ID page=$page}, 'auth' => ['resource' => 'admin.customer'] ], [ 'title' => {intl l="Send a mail to this customer"}, 'href' => "mailto:$EMAIL", 'icon' => ['class' => 'glyphicon glyphicon-envelope'], 'auth' => ['resource' => 'admin.customer'] ], [ 'type' => 'delete', 'class' => $deleteClass, 'title' => $deleteTitle, 'href' => $deleteHref, 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.customer'] ] ]} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{include file = "includes/pagination.html" loop_ref = "customer_list" max_page_count = 10 page_url = {url path="/admin/customers" search_term=$search|default:null search_in="ref,firstname,lastname,email" customer_order=$customer_order} } | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{intl l='You have no registred customers for the moment.'}
|