{** * 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) *} {if $ajax} {/if} {* Display column names and arrows for ordering (ASC, DESC) *} {if $is_order_position} {/if} {if !$simple_header} {/if} {if !$simple_header}
{block name="leadin"}{/block}
{/if} {block name="override_header"}{/block} {hook h='displayAdminListBefore'} {if isset($name_controller)} {capture name=hookName assign=hookName}display{$name_controller|ucfirst}ListBefore{/capture} {hook h=$hookName} {elseif isset($controller_name)} {capture name=hookName assign=hookName}display{$controller_name|ucfirst}ListBefore{/capture} {hook h=$hookName} {elseif isset($smarty.get.controller)} {capture name=hookName assign=hookName}display{$smarty.get.controller|ucfirst|htmlentities}ListBefore{/capture} {hook h=$hookName} {/if} {if isset($sql) && $sql}
{/if} {block name="startForm"}
{/block} {if !$simple_header} {block name="override_form_extra"}{/block}
{if isset($icon)} {/if} {if is_array($title)} {$title|end|escape:'html':'UTF-8'} {else} {$title|escape:'html':'UTF-8'} {/if} {if isset($toolbar_btn) && count($toolbar_btn) >0} {$list_total} {foreach from=$toolbar_btn item=btn key=k} {if $k != 'modules-list' && $k != 'back'} {/if} {/foreach} {if isset($sql) && $sql} {assign var=sql_manager value=Profile::getProfileAccess(Context::getContext()->employee->id_profile, Tab::getIdFromClassName('AdminRequestSql'))} {if $sql_manager.view == 1} {/if} {/if} {/if}
{if $show_toolbar} {/if} {elseif $simple_header}
{if isset($title)}

{if isset($icon)} {/if}{if is_array($title)}{$title|end|escape:'html':'UTF-8'}{else}{$title|escape:'html':'UTF-8'}{/if}

{/if} {/if} {if $bulk_actions && $has_bulk_actions} {assign var=y value=2} {else} {assign var=y value=1} {/if} {block name="preTable"}{/block}
{if $bulk_actions && $has_bulk_actions} {/if} {foreach $fields_display AS $key => $params} {/foreach} {if $multishop_active && $shop_link_type} {/if} {if $has_actions || $show_filters} {/if} {if !$simple_header && $show_filters} {if $has_bulk_actions} {/if} {* Filters (input, select, date or bool) *} {foreach $fields_display AS $key => $params} {/foreach} {if $multishop_active && $shop_link_type} {/if} {if $has_actions || $show_filters} {/if} {/if}
{if isset($params.hint)} {$params.title} {else} {$params.title} {/if} {if (!isset($params.orderby) || $params.orderby) && !$simple_header && $show_filters} {if $frameworkIndexUrl} {assign var="baseSortUrl" value="$frameworkIndexUrl"} {else} {assign var="baseSortUrl" value="{$currentIndex|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}"} {/if} {/if} {if $shop_link_type == 'shop'} {l s='Store' d='Admin.Global'} {else} {l s='Shop group'} {/if} {if !$simple_header}{/if}
-- {if isset($params.search) && !$params.search} -- {else} {if $params.type == 'bool'} {elseif $params.type == 'date' || $params.type == 'datetime'}
{elseif $params.type == 'select'} {if isset($params.filter_key)} {/if} {else} {/if} {/if}
-- {if $show_filters} {*Search must be before reset for default form submit*} {if $filters_has_value} {/if} {/if}