= $form->field($model, 'deadline')
->widget(
DatePicker::className(),
[
]
) ?>
field($model, 'pay')
->widget(
SwitchInput::className(),
[
'name' => 'pay',
'pluginOptions' => [
'onText' => \Yii::t('app', 'Оплачено'),
'offText' => \Yii::t('app', 'Не оплачено'),
],
]
); ?>
= $form->field($model, 'reason')
->dropDownList(
[
1 => 'То',
2 => 'Сё',
],
[ 'prompt' => 'Выберите причину' ]
) ?>
= $form->field($model, 'label')
->dropDownList(
ArrayHelper::map(
Label::find()
->asArray()
->all(),
'id',
'label'
),
[ 'prompt' => 'Выберите метку' ]
); ?>
= $form->field($model, 'name') ?>
= $form->field($model, 'phone') ?>
= $form->field($model, 'phone2') ?>
= $form->field($model, 'email') ?>
= $form->field(
$model,
'numbercard'
)
->textInput([ 'readonly' => true ]) ?>
= $form->field($model, 'comment')
->textarea([ 'rows' => '3' ]) ?>
= $form->field($model, 'delivery')
->dropDownList(
ArrayHelper::map(
Delivery::find()
->joinWith('lang')
->asArray()
->all(),
'id',
'lang.title'
),
[ 'prompt' => \Yii::t('app', 'Выберите доставку ...') ]
) ?>
= $form->field($model, 'declaration') ?>
= $form->field($model, 'stock') ?>
= $form->field($model, 'consignment') ?>
= $form->field($model, 'payment')
->dropDownList(
ArrayHelper::map(
OrderPayment::find()
->joinWith('lang')
->where([ 'status' => OrderPayment::ACTIVE ])
->asArray()
->all(),
'id',
'lang.title'
),
[ 'prompt' => 'Способ оплаты ...' ]
); ?>
= $form->field($model, 'insurance') ?>
= $form->field($model, 'amount_imposed') ?>
= $form->field($model, 'shipping_by')
->dropDownList(
ArrayHelper::getColumn(Order::SHIPPING_BY, 'label'),
[ 'prompt' => 'Оплата доставки ...' ]
); ?>
= $form->field($model, 'city') ?>
= $form->field($model, 'adress') ?>
= $form->field($model, 'body')
->textarea([ 'rows' => '3' ]) ?>
= $form->field($model, 'check') ?>
= $form->field($model, 'sms') ?>