= \Html::input([
'label' => 'Nazwa',
'name' => 'name',
'id' => 'name',
'value' => $this -> coupon['name']
]); ?>
= \Html::input_switch([
'label' => 'Wysłany',
'name' => 'send',
'checked' => $this -> coupon['send'] == 1 ? true : false
]); ?>
= \Html::input_switch([
'label' => 'Aktywny',
'name' => 'status',
'checked' => $this -> coupon['status'] == 1 ? true : false
]); ?>
= \Html::input_switch( [
'label' => 'Użyty',
'name' => 'used',
'checked' => $this -> coupon['used'] == 1 ? true : false,
]); ?>
= \Html::select([
'label' => 'Typ kuponu',
'name' => 'type',
'values' => [ 1 => 'Rabat procentowy na koszyk'],
'value' => $this -> coupo['type'],
]); ?>
= \Html::input([
'label' => 'Wartość',
'class' => 'number-format',
'name' => 'amount',
'id' => 'amount',
'value' => $this -> coupon['amount']
]); ?>
= \Html::input_switch([
'label' => 'Kupon jednorazowy',
'name' => 'one_time',
'checked' => $this -> coupon['one_time'] == 1 ? true : false
]); ?>
= \Html::input_switch([
'label' => 'Dotyczy również produktów przecenionych',
'name' => 'include_discounted_product',
'checked' => $this -> coupon['include_discounted_product'] == 1 ? true : false,
]); ?>