clean admin ps

This commit is contained in:
Marion Muszynski 2017-04-13 12:55:09 +02:00
parent 346fc24f05
commit 841b995299

View File

@ -12,13 +12,13 @@ class AdminPrivateSalesSales extends AdminTab {
$this->lang = TRUE;
parent::__construct();
$this->imagelist = array(
'thumb' => array($this->l('Thumbnail'), '260x108'),
'liston' => array($this->l('Listing image (on)'), '380x178'),
'listoff' => array($this->l('Listing image (off)'), '380x178'),
'fb' => array($this->l('Facebook image'), '100x100'),
'salebg' => array($this->l('Sale background'), '*x*'),
'trailerbg' => array($this->l('Trailer background'), '*x*'),
'trailercenter' => array($this->l('Trailer center background'), '560x*'),
//'thumb' => array($this->l('Thumbnail'), '260x108'),
//'fb' => array($this->l('Facebook image'), '100x100'),
//'trailerbg' => array($this->l('Trailer background'), '*x*'),
//'trailercenter' => array($this->l('Trailer center background'), '560x*'),
);
}
@ -307,8 +307,8 @@ class AdminPrivateSalesSales extends AdminTab {
// 'label_off' => '<span class="anticon anticon-cross text-rose"></span>',
'label-class' => 'col-sm-8',
'input-class' => 'col-sm-4',
'default' => ($this->cursale!==NULL?($this->cursale->enabled==0?0:1):0),
'checked' => ($this->cursale!==NULL?($this->cursale->enabled==0?0:1):0),
'default' => ($this->cursale!==NULL?($this->cursale->enabled==0?0:1):1),
'checked' => ($this->cursale!==NULL?($this->cursale->enabled==0?0:1):1),
'required' => true,
);
echo $helperForm->generateInput($input);
@ -407,8 +407,8 @@ class AdminPrivateSalesSales extends AdminTab {
'checked' => ($this->cursale!==NULL?($this->cursale->forward_news==0?0:1):0),
'required' => true,
);
echo $helperForm->generateInput($input);
echo '<div class="clearfix"></div>';
//echo $helperForm->generateInput($input);
//echo '<div class="clearfix"></div>';
// Shipping only fr
$input = array(
@ -430,7 +430,7 @@ class AdminPrivateSalesSales extends AdminTab {
<div class="col-sm-5">';
$id_employee_options = array();
foreach(Employee::getEmployees() as $e) {
foreach(Employee::getEmployeesByProfile(array(1,5)) as $e) {
$id_employee_options[(int)$e['id_employee']] = array(
'label' => $e['name'],
'value' => (int) $e['id_employee']