{** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *} {capture name='tr_count'}{counter name='tr_count'}{/capture} {if count($list)} {foreach $list AS $index => $tr} {if $bulk_actions && $has_bulk_actions} {if isset($list_skip_actions.delete)} {if !in_array($tr.$identifier, $list_skip_actions.delete)} {/if} {else} {/if} {/if} {foreach $fields_display AS $key => $params} {block name="open_td"} {else} onclick="document.location = '{$current_index|addslashes|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$tr.$identifier|escape:'html':'UTF-8'}{if $view}&view{else}&update{/if}{$table|escape:'html':'UTF-8'}{if $page > 1}&page={$page|intval}{/if}&token={$token|escape:'html':'UTF-8'}'"> {/if} {else} > {/if} {/block} {block name="td_content"} {if isset($params.prefix)}{$params.prefix}{/if} {if isset($params.badge_success) && $params.badge_success && isset($tr.badge_success) && $tr.badge_success == $params.badge_success}{/if} {if isset($params.badge_warning) && $params.badge_warning && isset($tr.badge_warning) && $tr.badge_warning == $params.badge_warning}{/if} {if isset($params.badge_danger) && $params.badge_danger && isset($tr.badge_danger) && $tr.badge_danger == $params.badge_danger}{/if} {if isset($params.color) && isset($tr[$params.color])} {/if} {if isset($tr.$key)} {if isset($params.active)} {$tr.$key} {elseif isset($params.callback)} {if isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength} {$tr.$key|truncate:$params.maxlength:'...'} {else} {$tr.$key} {/if} {elseif isset($params.activeVisu)} {if $tr.$key} {l s='Enabled' d='Admin.Global'} {else} {l s='Disabled' d='Admin.Global'} {/if} {elseif isset($params.position)} {if !$filters_has_value && $order_by == 'position' && $order_way != 'DESC'}
{$tr.$key.position + 1}
{else} {$tr.$key.position + 1} {/if} {elseif isset($params.image)} {$tr.$key} {elseif isset($params.icon)} {if is_array($tr[$key])} {if isset($tr[$key]['class'])} {else} {$tr[$key]['alt']} {/if} {/if} {elseif isset($params.type) && $params.type == 'price'} {if isset($tr.id_currency)} {displayPrice price=$tr.$key currency=$tr.id_currency} {else} {displayPrice price=$tr.$key} {/if} {elseif isset($params.float)} {$tr.$key} {elseif isset($params.type) && $params.type == 'date'} {dateFormat date=$tr.$key full=0} {elseif isset($params.type) && $params.type == 'datetime'} {dateFormat date=$tr.$key full=1} {elseif isset($params.type) && $params.type == 'decimal'} {$tr.$key|string_format:"%.2f"} {elseif isset($params.type) && $params.type == 'percent'} {$tr.$key} {l s='%'} {elseif isset($params.type) && $params.type == 'bool'} {if $tr.$key == 1} {l s='Yes' d='Admin.Global'} {elseif $tr.$key == 0 && $tr.$key != ''} {l s='No' d='Admin.Global'} {/if} {* If type is 'editable', an input is created *} {elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)} {elseif $key == 'color'} {if !is_array($tr.$key)}
{else} {*TEXTURE*} {$tr.name} {/if} {elseif isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength} {$tr.$key|truncate:$params.maxlength:'...'|escape:'html':'UTF-8'} {else} {$tr.$key|escape:'html':'UTF-8'} {/if} {else} {block name="default_field"}--{/block} {/if} {if isset($params.suffix)}{$params.suffix}{/if} {if isset($params.color) && isset($tr.color)}
{/if} {if isset($params.badge_danger) && $params.badge_danger && isset($tr.badge_danger) && $tr.badge_danger == $params.badge_danger}
{/if} {if isset($params.badge_warning) && $params.badge_warning && isset($tr.badge_warning) && $tr.badge_warning == $params.badge_warning}
{/if} {if isset($params.badge_success) && $params.badge_success && isset($tr.badge_success) && $tr.badge_success == $params.badge_success}
{/if} {/block} {block name="close_td"} {/block} {/foreach} {if $multishop_active && $shop_link_type} {if isset($tr.shop_short_name)} {$tr.shop_short_name} {else} {$tr.shop_name} {/if} {/if} {if $has_actions} {assign var='compiled_actions' value=array()} {foreach $actions AS $key => $action} {if isset($tr.$action)} {if $key == 0} {assign var='action' value=$action} {/if} {if $action == 'delete' && $actions|@count > 2} {$compiled_actions[] = 'divider'} {/if} {$compiled_actions[] = $tr.$action} {/if} {/foreach} {if $compiled_actions|count > 0} {if $compiled_actions|count > 1}
{/if}
{$compiled_actions[0]} {if $compiled_actions|count > 1} {/if}
{if $compiled_actions|count > 1}
{/if} {/if} {/if} {/foreach} {else}
{l s='No records found'}
{/if}