From 95f775daa123249f335e40ab1f86d671510dea7c Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Wed, 7 Aug 2013 10:52:23 +0200 Subject: [PATCH] [+] BO : Catalog Bulk actions --- controllers/admin/AdminAttributesGroupsController.php | 9 +++++++-- controllers/admin/AdminCategoriesController.php | 8 +++++++- controllers/admin/AdminFeaturesController.php | 9 +++++++-- controllers/admin/AdminManufacturersController.php | 10 ++++++++-- controllers/admin/AdminProductsController.php | 9 +++++++-- controllers/admin/AdminTagsController.php | 8 +++++++- 6 files changed, 43 insertions(+), 10 deletions(-) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 98c704d8b..9c41fc1c5 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -61,8 +61,13 @@ class AdminAttributesGroupsControllerCore extends AdminController ), ); - $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - + $this->bulk_actions = array( + 'delete' => array( + 'text' => $this->l('Delete selected'), + 'icon' => $this->l('icon-trash'), + 'confirm' => $this->l('Delete selected items?') + ) + ); $this->fieldImageSettings = array('name' => 'texture', 'dir' => 'co'); parent::__construct(); diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index cf2e96e3a..f8b22cd2a 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -82,7 +82,13 @@ class AdminCategoriesControllerCore extends AdminController ) ); - $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'))); + $this->bulk_actions = array( + 'delete' => array( + 'text' => $this->l('Delete selected'), + 'icon' => $this->l('icon-trash'), + 'confirm' => $this->l('Delete selected items?') + ) + ); $this->specificConfirmDelete = false; parent::__construct(); diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index ddc429309..57e0bb0ef 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -57,8 +57,13 @@ class AdminFeaturesControllerCore extends AdminController ) ); - $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - + $this->bulk_actions = array( + 'delete' => array( + 'text' => $this->l('Delete selected'), + 'icon' => $this->l('icon-trash'), + 'confirm' => $this->l('Delete selected items?') + ) + ); parent::__construct(); } diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index 7a8738bc6..63b862af2 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -38,8 +38,14 @@ class AdminManufacturersControllerCore extends AdminController $this->deleted = false; $this->allow_export = true; - $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - + $this->bulk_actions = array( + 'delete' => array( + 'text' => $this->l('Delete selected'), + 'icon' => $this->l('icon-trash'), + 'confirm' => $this->l('Delete selected items?') + ) + ); + $this->context = Context::getContext(); $this->fieldImageSettings = array( diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index d729fd56f..0bf0efc55 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -63,8 +63,13 @@ class AdminProductsControllerCore extends AdminController $this->className = 'Product'; $this->lang = true; $this->explicitSelect = true; - $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - + $this->bulk_actions = array( + 'delete' => array( + 'text' => $this->l('Delete selected'), + 'icon' => $this->l('icon-trash'), + 'confirm' => $this->l('Delete selected items?') + ) + ); if (!Tools::getValue('id_product')) $this->multishop_context_group = false; diff --git a/controllers/admin/AdminTagsController.php b/controllers/admin/AdminTagsController.php index 438dc972e..525eeb4d7 100644 --- a/controllers/admin/AdminTagsController.php +++ b/controllers/admin/AdminTagsController.php @@ -53,7 +53,13 @@ class AdminTagsControllerCore extends AdminController ) ); - $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); + $this->bulk_actions = array( + 'delete' => array( + 'text' => $this->l('Delete selected'), + 'icon' => $this->l('icon-trash'), + 'confirm' => $this->l('Delete selected items?') + ) + ); parent::__construct(); }