{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Search'}{/block} {block name="check-resource"}admin.search{/block} {block name="check-access"}view{/block} {block name="main-content"} {$searchTerm = {$smarty.get.search_term|trim}} {$page = $page|default:0} {capture name="more_results"}
| {intl l="customer ref"} | {intl l="company"} | {intl l="firstname & lastname"} | {intl l="Email address"} | {hook name="customers.header" location="customer_list_header" }{intl l="last order"} | {intl l='order amount'} | {intl l="Actions"} |
|---|---|---|---|---|---|---|
| {$REF} | {loop name="address" type="address" customer=$ID backend_context="1" default="true"} {$COMPANY|default:null} {/loop} | {$FIRSTNAME} {$LASTNAME} | {mailto address="{$EMAIL}" encode="hex"} | {hook name="customers.row" location="customer_list_row" customer_id={$ID}}{$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|default:null}, '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'] ] ]} |
| {intl l="Order n°"} | {intl l="Date & Hour"} | {intl l="Invoice"} | {intl l="Delivery"} | {intl l="Transaction"} | {intl l="Company"} | {intl l="Name"} | {intl l="Amount"} | {intl l="Status"} | {hook name="orders.table-header" location="orders_table_header" }{intl l="Actions"} |
|---|---|---|---|---|---|---|---|---|---|
| {$REF} | {format_date date=$CREATE_DATE} | {$INVOICE_REF} | {$DELIVERY_REF} | {$TRANSACTION_REF} | {$orderInvoiceCompany} | {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} | {format_money number=$TOTAL_TAXED_AMOUNT symbol=$currencySymbol} | {$orderStatus} | {hook name="orders.table-row" location="orders_table_row" order_id={$ID}}{$buttons = [ [ 'type' => 'edit', 'title' => {intl l='Edit this order'}, 'href' => {url path="/admin/order/update/%id" id=$ID}, 'auth' => ['resource' => 'admin.order'] ] ]} {include file='renderer/buttons.html' buttons=$buttons} |
| {intl l="ID"} | {intl l="Category title"} | {hook name="categories.header" location="category_list_header" }{intl l='Online'} | {intl l="Actions"} | |
|---|---|---|---|---|
| {$ID} | {$TITLE} | {hook name="categories.row" location="category_list_row" category_id={$ID} }
{loop type="auth" name="can_change" role="ADMIN" resource="admin.category" access="UPDATE"}
|
{include file='renderer/buttons.html' buttons=[ [ 'type' => 'folder-open', 'title' => {intl l='Browse this category'}, 'href' => {url path='admin/categories' category_id=$ID} ], [ 'type' => 'edit', 'title' => {intl l='Edit this category'}, 'href' => {url path='/admin/categories/update' category_id=$ID}, 'auth' => ['resource' => 'admin.category'] ], [ 'type' => 'delete', 'class' => 'category-delete', 'title' => {intl l='Delete this category'}, 'href' => '#category_delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.category'] ] ]} |
| {intl l="ID"} | {intl l="Reference"} | {intl l="Product title"} | {intl l='Price'} | {intl l='Online'} | {intl l="Actions"} | |
|---|---|---|---|---|---|---|
| {$ID} |
{loop type="image" name="cat_image" source="product" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
|
{$REF} {if $VIRTUAL}{/if} | {$TITLE} | {hook name="products.row" location="product_list_row" product_id={$ID}}{format_money number=$BEST_PRICE symbol={currency attr="symbol"}} |
{loop type="auth" name="can_change" role="ADMIN" resource="admin.product" access="UPDATE"}
|
{include file='renderer/buttons.html' buttons=[ [ 'type' => 'edit', 'title' => {intl l='Edit this product'}, 'href' => {url path='/admin/products/update' product_id=$ID page=$page|default:null}, 'auth' => ['resource' => 'admin.product'] ], [ 'type' => 'delete', 'class' => 'product-delete', 'title' => {intl l='Delete this product'}, 'href' => '#product_delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.product'] ] ]} |
| {intl l="ID"} | {intl l="Folder title"} | {hook name="folders.header" location="folder_list_header" }{intl l='Online'} | {intl l="Actions"} | |
|---|---|---|---|---|
| {$ID} | {$TITLE} | {hook name="folders.row" location="folder_list_row" folder_id={$ID} }
{loop type="auth" name="can_change" role="ADMIN" resource="admin.folder" access="UPDATE"}
|
{include file='renderer/buttons.html' buttons=[ [ 'type' => 'folder-open', 'title' => {intl l='Browse this folder'}, 'href' => {url path='admin/folders' parent=$ID} ], [ 'type' => 'edit', 'title' => {intl l='Edit this folder'}, 'href' => {url path="/admin/folders/update/%id" id=$ID}, 'auth' => ['resource' => 'admin.folder'] ], [ 'type' => 'delete', 'class' => 'folder-delete', 'title' => {intl l='Delete this folder and all its contents'}, 'href' => '#folder_delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.folder'] ] ]} |
| {intl l="ID"} | {intl l="Content title"} | {hook name="contents.header" location="content_list_header" }{intl l='Online'} | {intl l="Actions"} | |
|---|---|---|---|---|
| {$ID} | {$TITLE} | {hook name="contents.row" location="content_list_row" }
{loop type="auth" name="can_change" role="ADMIN" resource="admin.content" access="UPDATE"}
|
{include file='renderer/buttons.html' buttons=[ [ 'type' => 'edit', 'title' => {intl l='Edit this content'}, 'href' => {url path="/admin/content/update/{$ID}"}, 'auth' => ['resource' => 'admin.content'] ], [ 'type' => 'delete', 'class' => 'content-delete', 'title' => {intl l='Delete this content'}, 'href' => '#content_delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.content'] ] ]} |
| {intl l="ID"} | {intl l="Brand title"} | {hook name="brands.table-header" }{intl l='Online'} | {intl l="Actions"} | |
|---|---|---|---|---|
| {$ID} | {$TITLE} | {hook name="brands.table-row" brand_id=$ID}
{loop type="auth" name="can_change" role="ADMIN" resource="admin.brand" access="UPDATE"}
|
{include file='renderer/buttons.html' buttons=[ [ 'type' => 'edit', 'title' => {intl l='Edit this brand'}, 'href' => {url path="/admin/brand/update/{$ID}"}, 'auth' => ['resource' => 'admin.brand'] ], [ 'type' => 'delete', 'class' => 'brand-delete', 'title' => {intl l='Delete this brand'}, 'href' => '#brand_delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.brand'] ] ]} |