{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Orders'}{/block} {block name="check-permissions"}admin.orders.view{/block} {block name="main-content"}
{module_include location='orders_top'}
{module_include location='orders_table_header'} {loop type="order" name="order-list" customer="*"} {loop type="order_address" name="order-invoice-address" id=$INVOICE_ADDRESS} {assign "orderInvoiceFirstName" $FIRSTNAME} {assign "orderInvoiceLastName" $LASTNAME} {assign "orderInvoiceCompany" $COMPANY} {/loop} {loop type="order-status" name="order-status" id=$STATUS} {assign "orderStatus" $TITLE} {if $CODE == 'not_paid'} {assign "orderStatusLabel" "warning"} {else} {if $CODE == 'paid'} {assign "orderStatusLabel" "success"} {else} {if $CODE == 'processing'} {assign "orderStatusLabel" "primary"} {else} {if $CODE == 'sent'} {assign "orderStatusLabel" "info"} {else} {if $CODE == 'canceled'} {assign "orderStatusLabel" "danger"} {else} {/if} {/if} {/if} {/if} {/if} {/loop} {module_include location='orders_table_row'} {/loop}
{intl l='Orders'} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.orders.create"} {/loop}
{intl l="Order n°"} {intl l="Date & Hour"} {intl l="Compagny"} {intl l="Name"} {intl l="Amount"} {intl l="Status"}{intl l="Actions"}
01230450123045 {format_date date=$CREATE_DATE} {$orderInvoiceCompany} {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} {$TOTAL_TAXED_AMOUNT} {$orderStatus}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {/loop} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {/loop}
{module_include location='orders_bottom'}
{* Delete order confirmation dialog *} {capture "delete_order_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_order_dialog" dialog_title = {intl l="Delete an order"} dialog_message = {intl l="Do you really want to delete this order ?"} form_action = {url path='/admin/orders/delete'} form_content = {$smarty.capture.delete_order_dialog nofilter} } {/block}