// changes to table width

This commit is contained in:
tDidierjean
2011-11-04 12:52:52 +00:00
parent f98f8b3249
commit 38bd34ffdf
3 changed files with 25 additions and 19 deletions
@@ -52,11 +52,11 @@ class AdminCategoriesControllerCore extends AdminController
'id_category' => array( 'id_category' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center',
'width' => 30 'width' => 20
), ),
'name' => array( 'name' => array(
'title' => $this->l('Name'), 'title' => $this->l('Name'),
'width' => 100 'width' => 'auto'
), ),
'description' => array( 'description' => array(
'title' => $this->l('Description'), 'title' => $this->l('Description'),
@@ -77,6 +77,7 @@ class AdminCategoriesControllerCore extends AdminController
'active' => 'status', 'active' => 'status',
'align' => 'center', 'align' => 'center',
'type' => 'bool', 'type' => 'bool',
'width' => 70,
'orderby' => false 'orderby' => false
) )
); );
@@ -133,17 +134,17 @@ class AdminCategoriesControllerCore extends AdminController
// $this->toolbar_title = stripslashes($this->_category->getName()); // $this->toolbar_title = stripslashes($this->_category->getName());
if (empty($this->display)) if (empty($this->display))
$this->toolbar_btn['new'] = array( $this->toolbar_btn['new'] = array(
'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')
); );
if (Tools::getValue('id_category')) if (Tools::getValue('id_category'))
$this->toolbar_btn['edit'] = array( $this->toolbar_btn['edit'] = array(
'href' => self::$currentIndex.'&update'.$this->table.'&id_category='.Tools::getValue('id_category').'&token='.$this->token, 'href' => self::$currentIndex.'&update'.$this->table.'&id_category='.Tools::getValue('id_category').'&token='.$this->token,
'desc' => $this->l('Edit') 'desc' => $this->l('Edit')
); );
if ($this->display == 'view') if ($this->display == 'view')
$this->toolbar_btn['new'] = array( $this->toolbar_btn['new'] = array(
'href' => self::$currentIndex.'&add'.$this->table.'&id_parent='.Tools::getValue('id_category').'&token='.$this->token, 'href' => self::$currentIndex.'&add'.$this->table.'&id_parent='.Tools::getValue('id_category').'&token='.$this->token,
'desc' => $this->l('Add new') 'desc' => $this->l('Add new')
); );
parent::initToolbar(); parent::initToolbar();
@@ -53,31 +53,36 @@ class AdminManufacturersControllerCore extends AdminController
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'width' => 25 'width' => 25
), ),
'name' => array(
'title' => $this->l('Name'),
'width' => 200
),
'logo' => array( 'logo' => array(
'title' => $this->l('Logo'), 'title' => $this->l('Logo'),
'image' => 'm', 'image' => 'm',
'orderby' => false, 'orderby' => false,
'search' => false 'search' => false,
'width' => 150,
'align' => 'center',
),
'name' => array(
'title' => $this->l('Name'),
'width' => 'auto'
), ),
'addresses' => array( 'addresses' => array(
'title' => $this->l('Addresses'), 'title' => $this->l('Addresses'),
'tmpTableFilter' => true, 'tmpTableFilter' => true,
'width' => 20 'width' => 20,
'align' => 'center',
), ),
'products' => array( 'products' => array(
'title' => $this->l('Products'), 'title' => $this->l('Products'),
'tmpTableFilter' => true, 'tmpTableFilter' => true,
'width' => 20 'width' => 20,
'align' => 'center',
), ),
'active' => array( 'active' => array(
'title' => $this->l('Enabled'), 'title' => $this->l('Enabled'),
'width' => 25, 'width' => 70,
'active' => 'status', 'active' => 'status',
'type' => 'bool', 'type' => 'bool',
'align' => 'center',
'orderby' => false 'orderby' => false
) )
); );
@@ -111,7 +116,7 @@ class AdminManufacturersControllerCore extends AdminController
public function initListManufacturerAddresses() public function initListManufacturerAddresses()
{ {
$this->toolbar_title = $this->l('Addresses'); $this->toolbar_title = $this->l('Addresses');
// reset actions and query vars // reset actions and query vars
$this->actions = array(); $this->actions = array();
@@ -148,7 +153,7 @@ class AdminManufacturersControllerCore extends AdminController
), ),
'manufacturer_name' => array( 'manufacturer_name' => array(
'title' => $this->l('Manufacturer'), 'title' => $this->l('Manufacturer'),
'width' => 100 'width' => 'auto'
), ),
'firstname' => array( 'firstname' => array(
'title' => $this->l('First name'), 'title' => $this->l('First name'),
@@ -45,10 +45,10 @@ class AdminSuppliersControllerCore extends AdminController
$this->fieldsDisplay = array( $this->fieldsDisplay = array(
'id_supplier' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'id_supplier' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
'name' => array('title' => $this->l('Name'), 'width' => 120), 'logo' => array('title' => $this->l('Logo'), 'width' => 150, 'align' => 'center', 'image' => 'su', 'orderby' => false, 'search' => false),
'logo' => array('title' => $this->l('Logo'), 'align' => 'center', 'image' => 'su', 'orderby' => false, 'search' => false), 'name' => array('title' => $this->l('Name'), 'width' => 'auto'),
'products' => array('title' => $this->l('Number of products'), 'align' => 'right', 'filter_type' => 'int', 'tmpTableFilter' => true), 'products' => array('title' => $this->l('Number of products'), 'width' => 70, 'align' => 'right', 'filter_type' => 'int', 'tmpTableFilter' => true),
'active' => array('title' => $this->l('Enabled'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false) 'active' => array('title' => $this->l('Enabled'), 'width' => 70, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false)
); );
parent::__construct(); parent::__construct();