=
\Html::input( [
'label' => 'Nazwa',
'name' => 'name',
'id' => 'name',
'value' => $this -> promotion['name']
] );
?>
=
\Html::input_switch( [
'label' => 'Aktywna',
'name' => 'status',
'checked' => $this -> promotion['status'] == 1 ? true : false
] );
?>
=
\Html::input_switch( [
'label' => 'Łącz z kuponami rabatowymi',
'name' => 'include_coupon',
'checked' => $this -> promotion['include_coupon'] == 1 ? true : false
] );
?>
=
\Html::input_switch( [
'label' => 'Uwzględnij produkty przecenione',
'name' => 'include_product_promo',
'checked' => $this -> promotion['include_product_promo'] == 1 ? true : false
] );
?>
=
\Html::select( [
'label' => 'Warunki promocji',
'id' => 'condition_type',
'name' => 'condition_type',
'values' => \shop\Promotion::$condition_type,
'value' => $this -> promotion['condition_type'],
] );
?>
=
\Html::select( [
'label' => 'Typ rabatu',
'id' => 'discount_type',
'name' => 'discount_type',
'values' => \shop\Promotion::$discount_type,
'value' => $this -> promotion['discount_type'],
] );
?>
= \Html::input( [
'label' => 'Min. ilość produktów z danej kategorii',
'class' => 'int-format',
'name' => 'min_product_count',
'id' => 'min_product_count',
'value' => $this -> promotion['min_product_count']
] );?>
= \Html::input( [
'label' => 'Cena najtańszego produktu',
'class' => 'number-format',
'name' => 'price_cheapest_product',
'id' => 'price_cheapest_product',
'value' => $this -> promotion['price_cheapest_product']
] );
?>
=
\Html::input( [
'label' => 'Wartość',
'class' => 'number-format',
'name' => 'amount',
'id' => 'amount',
'value' => $this -> promotion['amount']
] );
?>
=
\Html::input( [
'label' => 'Data do',
'class' => 'date',
'name' => 'date_to',
'id' => 'date_to',
'value' => $this -> promotion['date_to']
] );
?>