From 747926039a83412ad3f2aea84dc45afb461304c9 Mon Sep 17 00:00:00 2001 From: ccauw Date: Tue, 12 Nov 2013 18:01:27 +0100 Subject: [PATCH] [*] BO : add class on TD in standard List Back office : Add a class on TD in list created by getList() In fields_list array of AdminController, we can add a new parameter('class') example : 'name' => array( 'title' => $this->l('Name'), 'width' => 150, 'class' => 'ma_classe', 'filter_key' => 'b!name' ), This parameter can be used for javascript effect, ... Thanks. --- admin-dev/themes/default/template/helpers/list/list_content.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin-dev/themes/default/template/helpers/list/list_content.tpl b/admin-dev/themes/default/template/helpers/list/list_content.tpl index ae80d9d10..c54d68607 100644 --- a/admin-dev/themes/default/template/helpers/list/list_content.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_content.tpl @@ -49,6 +49,7 @@ {/if} class="{if !$no_link}pointer{/if} {if isset($params.position) && $order_by == 'position' && $order_way != 'DESC'} dragHandle{/if} + {if isset($params.class)} {$params.class}{/if} {if isset($params.align)} {$params.align}{/if}" {if (!isset($params.position) && !$no_link && !isset($params.remove_onclick))} onclick="document.location = '{$current_index}&{$identifier}={$tr.$identifier}{if $view}&view{else}&update{/if}{$table}&token={$token}'">