// Refactoring of admin options

This commit is contained in:
rMalie
2011-08-05 15:52:45 +00:00
parent 9570d3d44f
commit 826d258e70
20 changed files with 338 additions and 234 deletions
+10 -5
View File
@@ -30,11 +30,15 @@ class AdminDeliverySlip extends AdminTab
public function __construct()
{
$this->table = 'delivery';
$this->optionTitle = $this->l('Delivery slips options');
$this->_fieldsOptions = array(
'PS_DELIVERY_PREFIX' => array('title' => $this->l('Delivery prefix:'), 'desc' => $this->l('Prefix used for delivery slips'), 'size' => 6, 'type' => 'textLang'),
'PS_DELIVERY_NUMBER' => array('title' => $this->l('Delivery number:'), 'desc' => $this->l('The next delivery slip will begin with this number, and then increase with each additional slip'), 'size' => 6, 'type' => 'text'),
$this->optionsList = array(
'general' => array(
'title' => $this->l('Delivery slips options'),
'fields' => array(
'PS_DELIVERY_PREFIX' => array('title' => $this->l('Delivery prefix:'), 'desc' => $this->l('Prefix used for delivery slips'), 'size' => 6, 'type' => 'textLang'),
'PS_DELIVERY_NUMBER' => array('title' => $this->l('Delivery number:'), 'desc' => $this->l('The next delivery slip will begin with this number, and then increase with each additional slip'), 'size' => 6, 'type' => 'text'),
),
),
);
parent::__construct();
@@ -71,6 +75,7 @@ class AdminDeliverySlip extends AdminTab
public function display()
{
$this->displayForm();
echo '<br />';
$this->displayOptionsList();
}