diff --git a/admin-dev/themes/default/css/admin-theme.css b/admin-dev/themes/default/css/admin-theme.css index 8d9b6a99d..7ddec4723 100644 --- a/admin-dev/themes/default/css/admin-theme.css +++ b/admin-dev/themes/default/css/admin-theme.css @@ -7902,14 +7902,17 @@ hr { word-wrap: nowrap; font-size: 12px; border-bottom: solid 1px #eeeeee; } -/* line 368, admin-theme.sass */ +/* line 367, admin-theme.sass */ .table td.center, .table th.center { text-align: center; } -/* line 370, admin-theme.sass */ +/* line 369, admin-theme.sass */ +.table td.pointer { + cursor: pointer; } +/* line 371, admin-theme.sass */ .table tr td:first-child, .table tr th:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } -/* line 373, admin-theme.sass */ +/* line 374, admin-theme.sass */ .table tr td:last-child, .table tr th:last-child { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } diff --git a/admin-dev/themes/default/css/admin-theme.sass b/admin-dev/themes/default/css/admin-theme.sass index 65bbc1097..f8a2a5bbe 100755 --- a/admin-dev/themes/default/css/admin-theme.sass +++ b/admin-dev/themes/default/css/admin-theme.sass @@ -364,9 +364,10 @@ hr word-wrap: nowrap font-size: 12px border-bottom: solid 1px #eee - td.center, th.center text-align: center + td.pointer + cursor: pointer tr td:first-child, tr th:first-child border-top-left-radius: 3px border-bottom-left-radius: 3px @@ -374,7 +375,6 @@ hr border-top-right-radius: 3px border-bottom-right-radius: 3px -//filter table tr.filter background-color: lighten(#CAE5F4,5%) input[type="text"].filter, input[type="password"].filter, select.filter diff --git a/admin-dev/themes/default/template/controllers/categories/helpers/list/list_header.tpl b/admin-dev/themes/default/template/controllers/categories/helpers/list/list_header.tpl index 7b93b8e5a..f9899fce1 100644 --- a/admin-dev/themes/default/template/controllers/categories/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/controllers/categories/helpers/list/list_header.tpl @@ -50,55 +50,52 @@ {block name=leadin} {if isset($delete_category) && $delete_category}
-
+

{if $need_delete_mode} - {l s='Do you want to delete the products too?'} + {l s='What do you want to do with the products associated with this category?'} {else} {l s='Deleting this category will remove products linked only within this category and no others. Are you sure you want to continue?'} {/if} -

+

{if $need_delete_mode}
-
-
- - {else} - - {/if} - {foreach $POST as $key => $value} - {if $key != 'deleteMode'} - {if is_array($value)} - {foreach $value as $val} - - {/foreach} - {else} - - {/if} + {else} + + {/if} + {foreach $POST as $key => $value} + {if $key != 'deleteMode'} + {if is_array($value)} + {foreach $value as $val} + + {/foreach} + {else} + {/if} - {/foreach} + {/if} + {/foreach}
-
-
+ + {/if} {/block} diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 8a28b506e..c02fd34b4 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -623,7 +623,7 @@ class AdminCategoriesControllerCore extends AdminController if ($this->delete_mode == 'linkanddisable') $this->disable_products = true; } - else if ($this->delete_mode != 'delete') + elseif ($this->delete_mode != 'delete') $this->errors[] = Tools::displayError('Unknown delete mode:'.' '.$this->deleted); } @@ -656,22 +656,21 @@ class AdminCategoriesControllerCore extends AdminController public function processDelete() { - $category = $this->loadObject(); if ($this->tabAccess['delete'] === '1') { + $category = $this->loadObject(); if ($category->isRootCategoryForAShop()) $this->errors[] = Tools::displayError('You cannot remove this category because one of your shops uses it as a root category.'); - else if (parent::processDelete()) + elseif (parent::processDelete()) { $this->setDeleteMode(); $this->processFatherlessProducts((int)$category->id_parent); return true; } - else - return false; } else $this->errors[] = Tools::displayError('You do not have permission to delete this.'); + return false; } public function processFatherlessProducts($id_parent) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 2e7f0a744..1f8a91d36 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3431,7 +3431,7 @@ class AdminProductsControllerCore extends AdminController ))->fetch() .'' .'
' - .'' + .'' .'
'; }