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

This commit is contained in:
Francois Gaillard committed 2012-12-10 10:18:53 +01:00
commit 2f3799abb8
7 files changed
+31 -3

No files matched your search

+1
View File
@@ -213,6 +213,7 @@ a.module_toggle_all{color: #268CCD;}
.toolbarBox .process-icon-new-url { background-image: url('../img/process-icon-new-url.png');} .toolbarBox .process-icon-new-url { background-image: url('../img/process-icon-new-url.png');}
.toolbarBox .process-icon-new-module-addon { background-image: url('../img/process-icon-new-module-addon.png');} .toolbarBox .process-icon-new-module-addon { background-image: url('../img/process-icon-new-module-addon.png');}
.toolbarBox .process-icon-save-and-preview { background-image: url('../img/process-icon-preview.png');} .toolbarBox .process-icon-save-and-preview { background-image: url('../img/process-icon-preview.png');}
.toolbarBox .process-icon-import { background-image: url('../img/process-icon-export-csv.png');}
.toolbarBox .process-icon-export { background-image: url('../img/process-icon-export-csv.png');} .toolbarBox .process-icon-export { background-image: url('../img/process-icon-export-csv.png');}
.toolbarBox .process-icon-export-all { background-image: url('../img/process-icon-export-csv-details.png');} .toolbarBox .process-icon-export-all { background-image: url('../img/process-icon-export-csv-details.png');}
.toolbarBox .process-icon-export-stock-state-quantities-csv { background-image: url('../img/process-icon-export-csv.png');} .toolbarBox .process-icon-export-stock-state-quantities-csv { background-image: url('../img/process-icon-export-csv.png');}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+10 -1
View File
@@ -62,7 +62,16 @@ class AdminAddressesControllerCore extends AdminController
parent::__construct(); parent::__construct();
} }
public function initToolbar()
{
parent::initToolbar();
$this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
}
public function renderList() public function renderList()
{ {
$this->_select = 'cl.`name` as country'; $this->_select = 'cl.`name` as country';
@@ -234,6 +234,10 @@ class AdminCategoriesControllerCore extends AdminController
'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token, 'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token,
'desc' => $this->l('Add new') 'desc' => $this->l('Add new')
); );
$this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
} }
// be able to edit the Home category // be able to edit the Home category
if (count(Category::getCategoriesWithoutParent()) == 1 && !Tools::isSubmit('id_category') if (count(Category::getCategoriesWithoutParent()) == 1 && !Tools::isSubmit('id_category')
@@ -184,6 +184,11 @@ class AdminCustomersControllerCore extends AdminController
parent::initToolbar(); parent::initToolbar();
if (!$this->can_add_customer) if (!$this->can_add_customer)
unset($this->toolbar_btn['new']); unset($this->toolbar_btn['new']);
else
$this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
} }
public function initProcess() public function initProcess()
@@ -557,6 +557,10 @@ class AdminManufacturersControllerCore extends AdminController
default: default:
parent::initToolbar(); parent::initToolbar();
$this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
} }
} }
@@ -2214,6 +2214,7 @@ class AdminProductsControllerCore extends AdminController
public function initToolbar() public function initToolbar()
{ {
parent::initToolbar();
if ($this->display == 'edit' || $this->display == 'add') if ($this->display == 'edit' || $this->display == 'add')
{ {
if ($product = $this->loadObject(true)) if ($product = $this->loadObject(true))
@@ -2281,8 +2282,12 @@ class AdminProductsControllerCore extends AdminController
} }
} }
} }
else
parent::initToolbar(); $this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
$this->context->smarty->assign('toolbar_scroll', 1); $this->context->smarty->assign('toolbar_scroll', 1);
$this->context->smarty->assign('show_toolbar', 1); $this->context->smarty->assign('show_toolbar', 1);
$this->context->smarty->assign('toolbar_btn', $this->toolbar_btn); $this->context->smarty->assign('toolbar_btn', $this->toolbar_btn);