{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'tools'} {/block} {block name="page-title"}{intl l='Brands'}{/block} {block name="check-resource"}admin.brand{/block} {block name="check-access"}view{/block} {block name="main-content"}
{admin_sortable_header current_order=$order order='id' reverse_order='id-reverse' path='/admin/brand' label="{intl l='ID'}" } | {admin_sortable_header current_order=$order order='alpha' reverse_order='alpha-reverse' path='/admin/brand' label="{intl l='Name'}" } | {admin_sortable_header current_order=$order order='manual' reverse_order='manual-reverse' path='/admin/brand' label="{intl l="Position"}" } | {admin_sortable_header current_order=$order order='visible' reverse_order='visible-reverse' path={url path='/admin/brand'} label="{intl l='Online'}" } | {hook name='brands.table-header' location='brands_table_header'}{intl l='Actions'} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{$ID} |
{loop type="image" name="folder_image" source="brand" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.brand" access="UPDATE"} {$TITLE} {/loop} {elseloop rel="can_change"} {$TITLE} {/elseloop} | {admin_position_block resource="admin.brand" access="UPDATE" path="/admin/brand/update-position" url_parameter="brand_id" in_place_edit_class="brandPositionChange" position="$POSITION" id="$ID" } |
{loop type="auth" name="can_change" role="ADMIN" resource="admin.brand" access="UPDATE"}
|
{hook name='brands.table-row' location='brands_table_row' brand_id={$ID}}
{include file='renderer/buttons.html' buttons=[ [ 'type' => 'edit', 'title' => {intl l='Change this brand'}, 'href' => {url path="/admin/brand/update/%id" id=$ID}, 'auth' => ['resource' => 'admin.brand'] ], [ 'type' => 'delete', 'class' => 'brand-delete', 'title' => {intl l='Delete this brand'}, 'href' => '#delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.brand'] ] ]} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{intl l="No brand has been created yet. Click the + button to create one."}
|