// 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
+9 -4
View File
@@ -59,11 +59,16 @@ class AdminDiscounts extends AdminTab
'date_to' => array('title' => $this->l('To'), 'width' => 60, 'type' => 'date', 'align' => 'right'),
'active' => array('title' => $this->l('Status'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false),
);
$this->optionTitle = $this->l('Discounts options');
$this->_fieldsOptions = array(
'PS_VOUCHERS' => array('title' => $this->l('Enable vouchers:'), 'desc' => $this->l('Allow the use of vouchers in shop'), 'cast' => 'intval', 'type' => 'bool'),
$this->optionsList = array(
'general' => array(
'title' => $this->l('Discounts options'),
'fields' => array(
'PS_VOUCHERS' => array('title' => $this->l('Enable vouchers:'), 'desc' => $this->l('Allow the use of vouchers in shop'), 'cast' => 'intval', 'type' => 'bool'),
),
),
);
parent::__construct();
}