This commit is contained in:
Vincent Augagneur
2013-11-07 12:06:58 +01:00
79 changed files with 1250 additions and 1404 deletions
@@ -196,9 +196,12 @@ class AdminAttributeGeneratorControllerCore extends AdminController
));
}
public function initToolbar()
public function initPageHeaderToolbar()
{
$this->toolbar_btn['back'] = array(
parent::initPageHeaderToolbar();
$this->page_header_toolbar_title = $this->l('Attributes generator');
$this->page_header_toolbar_btn['back'] = array(
'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.(int)Tools::getValue('id_product').'&addproduct&key_tab=Combinations',
'desc' => $this->l('Back to the product')
);
@@ -215,8 +218,7 @@ class AdminAttributeGeneratorControllerCore extends AdminController
}
// Init toolbar
$this->initToolbarTitle();
$this->initToolbar();
$this->initPageHeaderToolbar();
$this->initGroupTable();
$attributes = Attribute::getAttributes(Context::getContext()->language->id, true);
@@ -239,7 +241,9 @@ class AdminAttributeGeneratorControllerCore extends AdminController
'attribute_js' => $attribute_js,
'toolbar_btn' => $this->toolbar_btn,
'toolbar_scroll' => true,
'title' => $this->toolbar_title,
'show_page_header_toolbar' => $this->show_page_header_toolbar,
'page_header_toolbar_title' => $this->page_header_toolbar_title,
'page_header_toolbar_btn' => $this->page_header_toolbar_btn
));
}
}
@@ -3883,6 +3883,7 @@ class AdminProductsControllerCore extends AdminController
$helper = new HelperList();
$helper->identifier = 'id_product_attribute';
$helper->table_id = 'combinations-list';
$helper->token = $this->token;
$helper->currentIndex = self::$currentIndex;
$helper->no_link = true;