From f44ecb9fc850e1c86f5d952127f468b1ee49075d Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Fri, 20 Sep 2013 16:19:50 +0200 Subject: [PATCH] // Products section list adjustment --- controllers/admin/AdminAttachmentsController.php | 3 ++- .../admin/AdminAttributesGroupsController.php | 4 +++- controllers/admin/AdminCategoriesController.php | 5 ++++- controllers/admin/AdminFeaturesController.php | 5 ++++- controllers/admin/AdminManufacturersController.php | 13 +++++++++---- controllers/admin/AdminProductsController.php | 2 ++ controllers/admin/AdminScenesController.php | 2 ++ controllers/admin/AdminSuppliersController.php | 4 ++-- controllers/admin/AdminTagsController.php | 4 +++- controllers/admin/AdminTrackingController.php | 14 +++++++------- 10 files changed, 38 insertions(+), 18 deletions(-) diff --git a/controllers/admin/AdminAttachmentsController.php b/controllers/admin/AdminAttachmentsController.php index eb751bbbb..99bf19cae 100644 --- a/controllers/admin/AdminAttachmentsController.php +++ b/controllers/admin/AdminAttachmentsController.php @@ -42,7 +42,8 @@ class AdminAttachmentsControllerCore extends AdminController $this->fields_list = array( 'id_attachment' => array( 'title' => $this->l('ID'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name') diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index b96bb1430..40f5df228 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -55,6 +55,7 @@ class AdminAttributesGroupsControllerCore extends AdminController 'count_values' => array( 'title' => $this->l('Values count'), 'align' => 'center', + 'class' => 'fixed-width-xs', 'orderby' => false, 'search' => false ), @@ -62,7 +63,8 @@ class AdminAttributesGroupsControllerCore extends AdminController 'title' => $this->l('Position'), 'filter_key' => 'a!position', 'position' => 'position', - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), ); diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 3ea1a7706..24f250fdb 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -60,7 +60,8 @@ class AdminCategoriesControllerCore extends AdminController $this->fields_list = array( 'id_category' => array( 'title' => $this->l('ID'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name') @@ -80,6 +81,8 @@ class AdminCategoriesControllerCore extends AdminController 'title' => $this->l('Displayed'), 'active' => 'status', 'type' => 'bool', + 'class' => 'fixed-width-xs', + 'align' => 'center', 'orderby' => false ) ); diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index bcc92b822..972a1430d 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -49,12 +49,15 @@ class AdminFeaturesControllerCore extends AdminController 'value' => array( 'title' => $this->l('Values'), 'orderby' => false, - 'search' => false + 'search' => false, + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'position' => array( 'title' => $this->l('Position'), 'filter_key' => 'a!position', 'align' => 'center', + 'class' => 'fixed-width-xs', 'position' => 'position' ) ); diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index 60a220f00..a4eee56e1 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -56,6 +56,8 @@ class AdminManufacturersControllerCore extends AdminController $this->fields_list = array( 'id_manufacturer' => array( 'title' => $this->l('ID'), + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'logo' => array( 'title' => $this->l('Logo'), @@ -70,12 +72,12 @@ class AdminManufacturersControllerCore extends AdminController ), 'addresses' => array( 'title' => $this->l('Addresses'), - 'align' => 'center', - 'havingFilter' => true + 'search' => false, + 'align' => 'center' ), 'products' => array( 'title' => $this->l('Products:'), - 'havingFilter' => true, + 'search' => false, 'align' => 'center', ), 'active' => array( @@ -83,6 +85,7 @@ class AdminManufacturersControllerCore extends AdminController 'active' => 'status', 'type' => 'bool', 'align' => 'center', + 'class' => 'fixed-width-xs', 'orderby' => false ) ); @@ -144,7 +147,9 @@ class AdminManufacturersControllerCore extends AdminController return array( 'id_address' => array( - 'title' => $this->l('ID') + 'title' => $this->l('ID'), + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'manufacturer_name' => array( 'title' => $this->l('Manufacturer'), diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 24ef4cd7c..830c8cbe3 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -195,6 +195,7 @@ class AdminProductsControllerCore extends AdminController $this->fields_list['id_product'] = array( 'title' => $this->l('ID'), 'align' => 'center', + 'class' => 'fixed-width-xs', 'type' => 'int' ); $this->fields_list['image'] = array( @@ -254,6 +255,7 @@ class AdminProductsControllerCore extends AdminController 'filter_key' => $alias.'!active', 'align' => 'center', 'type' => 'bool', + 'class' => 'fixed-width-sm', 'orderby' => false ); diff --git a/controllers/admin/AdminScenesController.php b/controllers/admin/AdminScenesController.php index 4eaeefe3d..af8963128 100644 --- a/controllers/admin/AdminScenesController.php +++ b/controllers/admin/AdminScenesController.php @@ -46,6 +46,7 @@ class AdminScenesControllerCore extends AdminController 'id_scene' => array( 'title' => $this->l('ID'), 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Image Maps'), @@ -54,6 +55,7 @@ class AdminScenesControllerCore extends AdminController 'active' => array( 'title' => $this->l('Activated'), 'align' => 'center', + 'class' => 'fixed-width-xs', 'active' => 'status', 'type' => 'bool', 'orderby' => false diff --git a/controllers/admin/AdminSuppliersController.php b/controllers/admin/AdminSuppliersController.php index cdc1b0679..b2d6bd7f5 100644 --- a/controllers/admin/AdminSuppliersController.php +++ b/controllers/admin/AdminSuppliersController.php @@ -53,11 +53,11 @@ class AdminSuppliersControllerCore extends AdminController $this->fieldImageSettings = array('name' => 'logo', 'dir' => 'su'); $this->fields_list = array( - 'id_supplier' => array('title' => $this->l('ID'), 'align' => 'center'), + 'id_supplier' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'logo' => array('title' => $this->l('Logo'), 'align' => 'center', 'image' => 'su', 'orderby' => false, 'search' => false), 'name' => array('title' => $this->l('Name')), 'products' => array('title' => $this->l('Number of products'), 'align' => 'right', 'filter_type' => 'int', 'tmpTableFilter' => true), - 'active' => array('title' => $this->l('Enabled'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false) + 'active' => array('title' => $this->l('Enabled'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false, 'class' => 'fixed-width-xs') ); parent::__construct(); diff --git a/controllers/admin/AdminTagsController.php b/controllers/admin/AdminTagsController.php index ecd93e268..6f879d4cf 100644 --- a/controllers/admin/AdminTagsController.php +++ b/controllers/admin/AdminTagsController.php @@ -37,6 +37,7 @@ class AdminTagsControllerCore extends AdminController 'id_tag' => array( 'title' => $this->l('ID'), 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'lang' => array( 'title' => $this->l('Language'), @@ -48,7 +49,8 @@ class AdminTagsControllerCore extends AdminController ), 'products' => array( 'title' => $this->l('Products:'), - 'align' => 'right', + 'align' => 'center', + 'class' => 'fixed-width-xs', 'havingFilter' => true ) ); diff --git a/controllers/admin/AdminTrackingController.php b/controllers/admin/AdminTrackingController.php index b0bcd8ffb..a0b9a5854 100644 --- a/controllers/admin/AdminTrackingController.php +++ b/controllers/admin/AdminTrackingController.php @@ -100,10 +100,10 @@ class AdminTrackingControllerCore extends AdminController $this->addRowActionSkipList('edit', array(Category::getTopCategory()->id)); $this->fields_list = (array( - 'id_category' => array('title' => $this->l('ID')), + 'id_category' => array('title' => $this->l('ID'), 'class' => 'fixed-width-xs', 'align' => 'center'), 'name' => array('title' => $this->l('Name'), 'filter_key' => 'b!name'), 'description' => array('title' => $this->l('Description')), - 'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status') + 'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'align' => 'center', 'class' => 'fixed-width-xs') )); $this->clearFilters(); @@ -137,10 +137,10 @@ class AdminTrackingControllerCore extends AdminController $this->addRowAction('delete'); $this->fields_list = array( - 'id_product' => array('title' => $this->l('ID')), + 'id_product' => array('title' => $this->l('ID'), 'class' => 'fixed-width-xs', 'align' => 'center'), 'reference' => array('title' => $this->l('Reference')), 'name' => array('title' => $this->l('Name'), 'filter_key' => 'b!name'), - 'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status') + 'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'align' => 'center', 'class' => 'fixed-width-xs') ); $this->clearFilters(); @@ -180,10 +180,10 @@ class AdminTrackingControllerCore extends AdminController $this->addRowAction('delete'); $this->fields_list = array( - 'id_product' => array('title' => $this->l('ID')), + 'id_product' => array('title' => $this->l('ID'), 'class' => 'fixed-width-xs', 'align' => 'center'), 'reference' => array('title' => $this->l('Reference')), 'name' => array('title' => $this->l('Name')), - 'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status') + 'active' => array('title' => $this->l('Status'), 'type' => 'bool', 'active' => 'status', 'align' => 'center', 'class' => 'fixed-width-xs') ); $this->clearFilters(); @@ -221,7 +221,7 @@ class AdminTrackingControllerCore extends AdminController $this->addRowAction('delete'); $this->fields_list = array( - 'id_product' => array('title' => $this->l('ID')), + 'id_product' => array('title' => $this->l('ID'), 'class' => 'fixed-width-xs', 'align' => 'center'), 'reference' => array('title' => $this->l('Reference')), 'name' => array('title' => $this->l('Name'), 'filter_key' => 'b!name') );