{extends file="admin-layout.tpl"} {default_translation_domain domain='artabanmarketplace.bo.default'} {block name="no-return-functions"} {$admin_current_location = 'seller'} {/block} {block name="page-title"} {intl l="Sellers" d='artabanmarketplace.bo.default'} {/block} {block name="check-resource"}admin.module{/block} {block name="check-access"}view{/block} {block name="check-module"}ArtabanMarketplace{/block} {block name="main-content"} {assign "order" $smarty.get.order}
{if $general_error}
{$general_error}
{/if} {if $error_msg}
{$error_msg}
{/if}

{admin_sortable_header current_order=$order order='id' reverse_order='id-reverse' path={url path='/admin/module/artabanmarketplace/sellers' target='seller-table'} request_parameter_name='order' label="{intl l='ID'}" } | {intl l="Logo" d="artabanmarketplace.bo.default"} | {admin_sortable_header current_order=$order order='title' reverse_order='title-reverse' path={url path='/admin/module/artabanmarketplace/sellers' target='seller-table'} request_parameter_name='order' label="{intl l='Company' d='artabanmarketplace.bo.default'}" } | {intl l="Visible"} | {admin_sortable_header current_order=$order order='address1' reverse_order='address1-reverse' path={url path='/admin/module/artabanmarketplace/sellers' target='seller-table'} label="{intl l='Address1' d='artabanmarketplace.bo.default'}" } | {admin_sortable_header current_order=$order order='zipcode' reverse_order='zipcode-reverse' path={url path='/admin/module/artabanmarketplace/sellers' target='seller-table'} label="{intl l='Zipcode' d='artabanmarketplace.bo.default'}" } | {admin_sortable_header current_order=$order order='city' reverse_order='city-reverse' path={url path='/admin/module/artabanmarketplace/sellers' target='seller-table'} label="{intl l='City' d='artabanmarketplace.bo.default'}" } | {intl l='Country' d='artabanmarketplace.bo.default'} | {intl l="Actions"}
--- | --- | --- | --- | --- | --- | --- | --- | ---
{loop name="seller-list" type="ampseller" backend_context="yes" order=$order force_return=true}
{$ID} | {loop type="ampseller_image" name="image_seller" source_id=$ID width="50" height="30" resize_mode="borders" order="manual" limit="1"} {/loop} | {$TITLE} | {loop type="auth" name="can_change" role="ADMIN" resource="admin.seller" module="ArtabanMarketplace" access="UPDATE"} {/loop} {elseloop rel="can_change"} {/elseloop} | {$ADDRESS1} | {$ZIPCODE} | {$CITY} | {loop type="country" name="country" id=$COUNTRY_ID limit=1} {$TITLE} {/loop} {* Actions *} | {loop name="auth-edit" type="auth" role="ADMIN" access="UPDATE" module="ArtabanMarketplace"} {/loop} {loop name="auth-delete" type="auth" role="ADMIN" resource="admin.seller" access="DELETE" module="ArtabanMarketplace"} {/loop}
{/loop} {elseloop rel="seller-list"}
{intl l="There is no SELLER" d="artabanmarketplace.bo.default"}
{/elseloop}
{ifloop rel="seller-list"}
{include file = "includes/pagination.html" loop_ref = "seller-list" max_page_count = 20 page_url = "{url path="/admin/module/ArtabanMarketplace/sellers" order=$order target='seller-table'}" }
{/ifloop}

{* CREATE Modal *} {form name="seller.create"} {capture "seller_create"} {include file="form/seller-create.html" form_name="seller.create"} {/capture} {include file="includes/generic-create-dialog.html" dialog_id = "seller-create" dialog_title = {intl l="Create an entry of SELLER" d="artabanmarketplace.bo.default"} dialog_body = {$smarty.capture.seller_create nofilter} dialog_ok_label = {intl l="Create"} dialog_cancel_label = {intl l="Cancel"} form_action = {$current_url} form_enctype = {form_enctype form=$form} } {/form} {* DELETE modal *} {capture "seller_delete"} {intl l="Do you really want to delete this Seller entry ?" d="artabanmarketplace.bo.default"} {/capture} {include file="includes/generic-confirm-dialog.html" dialog_id = "seller-delete" dialog_title = {intl l="Delete an entry of Seller" d="artabanmarketplace.bo.default"} dialog_message = {$smarty.capture.seller_delete nofilter} dialog_ok_label = {intl l="Delete"} dialog_cancel_label = {intl l="Cancel"} form_action = {token_url path='/admin/module/artabanmarketplace/seller/delete'} } {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'}
{/javascripts}
{/block}