Merge branch 'bootstrap' of https://github.com/PrestaShop/PrestaShop into bootstrap

This commit is contained in:
Kevin Granger
2013-10-17 18:43:31 +02:00
@@ -205,6 +205,8 @@ class AdminGroupsControllerCore extends AdminController
$this->lang = false;
$this->list_id = 'customer_group';
$this->actions = array();
$this->addRowAction('edit');
$this->identifier = 'id_customer';
$this->bulk_actions = false;
$this->list_no_link = true;
$this->fields_list = (array(
@@ -553,4 +555,24 @@ class AdminGroupsControllerCore extends AdminController
$this->displayInformation($default_group_information);
return parent::renderList();
}
public function displayEditLink($token = null, $id, $name = null)
{
$tpl = $this->createTemplate('helpers/list/list_action_edit.tpl');
if (!array_key_exists('Edit', self::$cache_lang))
self::$cache_lang['Edit'] = $this->l('Edit', 'Helper');
$href = self::$currentIndex.'&'.$this->identifier.'='.$id.'&update'.$this->table.'&token='.($token != null ? $token : $this->token);
if ($this->display == 'view')
$href = Context::getContext()->link->getAdminLink('AdminCustomers').'&id_customer='.(int)$id.'&updatecustomer';
$tpl->assign(array(
'href' => $href,
'action' => self::$cache_lang['Edit'],
'id' => $id
));
return $tpl->fetch();
}
}