diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php
index 16a8e01fd..9e6dc528a 100644
--- a/controllers/admin/AdminCustomersController.php
+++ b/controllers/admin/AdminCustomersController.php
@@ -268,30 +268,26 @@ class AdminCustomersControllerCore extends AdminController
'type' => 'text',
'label' => $this->l('First name:'),
'name' => 'firstname',
- 'size' => 33,
'required' => true,
- 'hint' => $this->l('Forbidden characters:').' 0-9!<>,;?=+()@#"�{}_$%:'
+ 'hint' => $this->l('Forbidden characters:').' 0-9!<>,;?=+()@#"�{}_$%:'
),
array(
'type' => 'text',
'label' => $this->l('Last name:'),
'name' => 'lastname',
- 'size' => 33,
'required' => true,
- 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:'
+ 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:'
),
array(
'type' => 'text',
'label' => $this->l('Email address:'),
'name' => 'email',
- 'size' => 33,
'required' => true
),
array(
'type' => 'password',
'label' => $this->l('Password:'),
'name' => 'passwd',
- 'size' => 33,
'required' => ($obj->id ? false : true),
'hint' => ($obj->id ? $this->l('Leave this field blank if there\'s no change') : $this->l('Minimum of five characters (only letters and numbers).').' -_')
),
@@ -430,32 +426,27 @@ class AdminCustomersControllerCore extends AdminController
$this->fields_form['input'][] = array(
'type' => 'text',
'label' => $this->l('Company:'),
- 'name' => 'company',
- 'size' => 33
+ 'name' => 'company'
);
$this->fields_form['input'][] = array(
'type' => 'text',
'label' => $this->l('SIRET:'),
- 'name' => 'siret',
- 'size' => 14
+ 'name' => 'siret'
);
$this->fields_form['input'][] = array(
'type' => 'text',
'label' => $this->l('APE:'),
- 'name' => 'ape',
- 'size' => 5
+ 'name' => 'ape'
);
$this->fields_form['input'][] = array(
'type' => 'text',
'label' => $this->l('Website:'),
- 'name' => 'website',
- 'size' => 33
+ 'name' => 'website'
);
$this->fields_form['input'][] = array(
'type' => 'text',
'label' => $this->l('Outstanding allowed:'),
'name' => 'outstanding_allow_amount',
- 'size' => 10,
'hint' => $this->l('Valid characters:').' 0-9',
'suffix' => '¤'
);
@@ -463,7 +454,6 @@ class AdminCustomersControllerCore extends AdminController
'type' => 'text',
'label' => $this->l('Maximum number of payment days:'),
'name' => 'max_payment_days',
- 'size' => 10,
'hint' => $this->l('Valid characters:').' 0-9'
);
$this->fields_form['input'][] = array(
@@ -846,19 +836,19 @@ class AdminCustomersControllerCore extends AdminController
Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token);
}
- public static function printNewsIcon($value, $customer)
+ public function printNewsIcon($value, $customer)
{
- return '
- '.($value ? '
' : '
').
+ '.($value ? ' '.$this->l('Yes') : ' '.$this->l('No')).
'';
}
- public static function printOptinIcon($value, $customer)
+ public function printOptinIcon($value, $customer)
{
- return '
- '.($value ? '
' : '
').
+ '.($value ? ' '.$this->l('Yes') : ' '.$this->l('No')).
'';
}
@@ -924,5 +914,3 @@ class AdminCustomersControllerCore extends AdminController
}
}
}
-
-
diff --git a/controllers/admin/AdminGroupsController.php b/controllers/admin/AdminGroupsController.php
index 5755453b8..7a5ce0395 100644
--- a/controllers/admin/AdminGroupsController.php
+++ b/controllers/admin/AdminGroupsController.php
@@ -224,13 +224,13 @@ class AdminGroupsControllerCore extends AdminController
'name' => 'name',
'required' => true,
'lang' => true,
- 'hint' => $this->l('Forbidden characters:').' 0-9!<>,;?=+()@#"�{}_$%:'
+ 'hint' => $this->l('Forbidden characters:').' 0-9!<>,;?=+()@#"�{}_$%:'
),
array(
'type' => 'text',
'label' => $this->l('Discount (%):'),
'name' => 'reduction',
- 'desc' => $this->l('Automatically apply this value as a discount on all products for members of this customer group.')
+ 'hint' => $this->l('Automatically apply this value as a discount on all products for members of this customer group.')
),
array(
'type' => 'select',
@@ -496,13 +496,13 @@ class AdminGroupsControllerCore extends AdminController
* @param $tr array Row data
* @return string HTML link and icon
*/
- public static function printShowPricesIcon($id_group, $tr)
+ public function printShowPricesIcon($id_group, $tr)
{
$group = new Group($tr['id_group']);
if (!Validate::isLoadedObject($group))
return;
- return '
- '.($group->show_prices ? '
' : '
').
+ return '
+ '.($group->show_prices ? ' '.$this->l('Yes') : ' '.$this->l('No')).
'';
}