diff --git a/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl
index 34911b22d..221bb1a7b 100644
--- a/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl
+++ b/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl
@@ -103,7 +103,7 @@
}
else
{
- $('#group_discount_category_table').append('
| '+jsonData.catPath+' | {l s='Discount:'}'+jsonData.discount+'{l s='%'} |  |
');
+ $('#group_discount_category_table').append('| '+jsonData.catPath+' | {l s='Discount:'}'+jsonData.discount+'{l s='%'} | {l s='Delete'} |
');
var input_hidden = document.createElement("input");
input_hidden.setAttribute('type', 'hidden');
@@ -123,7 +123,6 @@
function initFancyBox()
{
$('[name="id_category"]:checked').removeAttr('checked');
- collapseAllCategories();
$('#category_reduction_fancybox').val('0.00');
}
@@ -136,8 +135,8 @@
{$category.path} |
{l s='Discount: %d%%' sprintf=$category.reduction} |
-
-
+
+ {l s='Delete'}
|
diff --git a/controllers/admin/AdminGroupsController.php b/controllers/admin/AdminGroupsController.php
index d3994bbc8..e1d74893c 100644
--- a/controllers/admin/AdminGroupsController.php
+++ b/controllers/admin/AdminGroupsController.php
@@ -339,7 +339,7 @@ class AdminGroupsControllerCore extends AdminController
$category['reduction'] = $category_reduction[$category['id_category']];
$category_reductions[(int)$category['id_category']] = array(
- 'path' => getPath(self::$currentIndex.'?tab=AdminCategories', (int)$category['id_category']),
+ 'path' => getPath(Context::getContext()->link->getAdminLink('AdminCategories'), (int)$category['id_category']),
'reduction' => (float)$category['reduction'] * 100,
'id_category' => (int)$category['id_category']
);
@@ -349,7 +349,7 @@ class AdminGroupsControllerCore extends AdminController
foreach ($category_reduction as $key => $val)
if (!array_key_exists($key, $category_reductions))
$category_reductions[(int)$key] = array(
- 'path' => getPath(self::$currentIndex.'?tab=AdminCategories', $key),
+ 'path' => getPath(Context::getContext()->link->getAdminLink('AdminCategories'), $key),
'reduction' => (float)$val * 100,
'id_category' => (int)$key
);
diff --git a/controllers/admin/AdminLanguagesController.php b/controllers/admin/AdminLanguagesController.php
index e23e9e460..8da2e046b 100644
--- a/controllers/admin/AdminLanguagesController.php
+++ b/controllers/admin/AdminLanguagesController.php
@@ -91,9 +91,9 @@ class AdminLanguagesControllerCore extends AdminController
);
$this->bulk_actions = array(
- 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')),
- 'enableSelection' => array('text' => $this->l('Enable selection')),
- 'disableSelection' => array('text' => $this->l('Disable selection'))
+ 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash'),
+ 'enableSelection' => array('text' => $this->l('Enable selection'), 'icon' => 'icon-ok'),
+ 'disableSelection' => array('text' => $this->l('Disable selection'), 'icon' => 'icon-ban-circle')
);
$this->specificConfirmDelete = $this->l('When you delete a language, all related translations in the database will be deleted. Are you sure you want to proceed?');