diff --git a/admin-dev/themes/template/list_content.tpl b/admin-dev/themes/template/list_content.tpl
index 50fbcf2c5..d64cf84bd 100644
--- a/admin-dev/themes/template/list_content.tpl
+++ b/admin-dev/themes/template/list_content.tpl
@@ -1,5 +1,5 @@
{*
-* 2007-2011 PrestaShop
+* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
@@ -36,14 +36,14 @@
{/if}
{foreach $fields_display AS $key => $params}
-
{if isset($params.prefix)}$params.prefix{/if}
{else}
@@ -68,8 +68,8 @@
{/if}
{elseif isset($params.image)}
{$tr.$key}
- {*{elseif (isset($params.icon) && (isset($params['icon'][$tr[$key]]) || isset($params['icon']['default'])))}
- *}
+ {elseif (isset($params.icon))}
+
{elseif isset($params.price)}
{$tr.$key}
{elseif isset($params.float)}
diff --git a/admin-dev/themes/template/list_header.tpl b/admin-dev/themes/template/list_header.tpl
index df5b5cdb2..d2c56a594 100644
--- a/admin-dev/themes/template/list_header.tpl
+++ b/admin-dev/themes/template/list_header.tpl
@@ -1,5 +1,5 @@
{*
-* 2007-2011 PrestaShop
+* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
@@ -42,7 +42,16 @@
{/if}
-
+
+
+
{if $add_button}
{l s='Add new'}
{/if}
@@ -104,7 +113,7 @@
{/if}
{/foreach}
-
+
{if $shop_link_type}
|
{if $shop_link_type == 'shop'}
@@ -113,7 +122,7 @@
{l s='Group shop'}
{/if}
|
- {/if}
+ {/if}
{if $has_actions}
{l s='Actions'} |
{/if}
@@ -124,7 +133,7 @@
--
{/if}
-
+
{* Filters (input, select, date or bool) *}
{foreach $fields_display AS $key => $params}
@@ -138,8 +147,8 @@
{elseif $params.type == 'date' || $params.type == 'datetime'}
- {l s='From'}
- {l s='To'}
+ {l s='From'}
+ {l s='To'}
{elseif $params.type == 'select'}
{if isset($params.filter_key)}
|
{/foreach}
-
+
{if $shop_link_type}
-- |
{/if}
diff --git a/classes/HelperList.php b/classes/HelperList.php
index dae1477e2..b9a85be64 100644
--- a/classes/HelperList.php
+++ b/classes/HelperList.php
@@ -241,7 +241,7 @@ class HelperListCore extends Helper
else
$echo = $tr[$key];
- $this->_list[$index][$key] = isset($params['callback']) ? call_user_func_array(array((isset($params['callback_object'])) ? $params['callback_object'] : $this->className, $params['callback']), array($echo, $tr)) : $echo;
+ $this->_list[$index][$key] = isset($params['callback']) ? call_user_func_array(array((isset($params['callback_object'])) ? $params['callback_object'] : $this->context->controller, $params['callback']), array($echo, $tr)) : $echo;
}
}
}
@@ -383,7 +383,7 @@ class HelperListCore extends Helper
$value = '';
$name = $this->table.'Filter_'.(isset($params['filter_key']) ? $params['filter_key'] : $key);
$name_id = str_replace('!', '__', $name);
- $this->includeDatepicker(array($name_id.'_0', $name_id.'_1'));
+ $this->context->controller->addJqueryUI('ui.datepicker');
break;
case 'select':
foreach ($params['select'] AS $option_value => $option_display)