isNewRecord) { echo $form->field($model, 'user_id') ->textInput(); } ?> field($model, 'name') ->textInput([ 'maxlength' => true ]) ?> field($model, 'phone') ->textInput([ 'maxlength' => true ]) ?> field($model, 'email') ->textInput([ 'maxlength' => true ]) ?> field($model, 'city') ->textInput([ 'maxlength' => true ]) ?> field($model, 'address') ->textInput([ 'maxlength' => true ]) ?> field($model, 'comment') ->textInput([ 'maxlength' => true ]) ?> field($model, 'label_id') ->dropDownList($labels) ?> field($model, 'delivery_id') ->dropDownList($deliveries) ?> field($model, 'payment_id') ->dropDownList($payments) ?> isNewRecord) { ?>
orderProducts as $index => $orderProduct) { ?>
field($orderProduct, "[$index]variant_id") ->hiddenInput() ->label(false); echo $orderProduct->variant->product->lang->title . '(' . $orderProduct->variant->sku . ')'; ?>
price; ?>
field($orderProduct, "[$index]count") ->textInput() ->label(false); ?>
'fa fa-', ] ), '#', [ 'class' => 'remove-order-product', ] ) ?>
isNewRecord ? Yii::t('order', 'Create') : Yii::t('order', 'Update'), [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ] ) ?>