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

This commit is contained in:
lLefevre
2011-12-04 10:42:05 +00:00
parent e1b7cd86af
commit 570ecde717
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)
*/