// update tab "attributes" in smarty template + update action in list in ajax

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10891 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-04 10:42:05 +00:00
parent 911c8ad6c4
commit efc5ff8390
28 changed files with 1110 additions and 494 deletions
+19 -1
View File
@@ -432,7 +432,7 @@ class HelperListCore extends Helper
$tpl->assign(array(
'href' => $this->currentIndex.'&'.$this->identifier.'='.$id.'&update'.$this->table.'&token='.($token != null ? $token : $this->token),
'action' => self::$cache_lang['Edit'],
'id' => (int)$id
'id' => $id
));
return $tpl->fetch();
@@ -461,6 +461,24 @@ class HelperListCore extends Helper
return $tpl->fetch();
}
/**
* Display delete action link
*/
protected function displayDefaultLink($token = null, $id)
{
$tpl = $this->createTemplate('list_action_default.tpl');
if (!array_key_exists('Default', self::$cache_lang))
self::$cache_lang['Default'] = $this->l('Default');
$tpl->assign(array_merge($this->tpl_delete_link_vars, array(
'href' => $this->currentIndex.'&'.$this->identifier.'='.$id.'&delete'.$this->table.'&token='.($token != null ? $token : $this->token),
'action' => self::$cache_lang['Default'],
'id' => $id,
)));
return $tpl->fetch();
}
/**
* Display list header (filtering, pagination and column names)
*/