title = 'Заказ №' . $model->id; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
Заказ успешно сохранен!
'reg-form', 'layout' => 'horizontal', 'options' => [ 'enctype' => 'multipart/form-data' ], 'fieldConfig' => [ //'template' => "{label}\n
{input}
\n
{error}
", //'labelOptions' => ['class' => 'col-lg-2 control-label'], ], 'action' => [ 'order/show', 'id' => $model->id, ], ] ); ?>
Заказ №id ?>
date_time ?>
field($model, 'date_dedline') ->widget(DatePicker::className(), [ 'pluginOptions' => [ 'format' => 'dd-mm-yyyy', 'todayHighlight' => true ]]); */ ?>
field($model, 'name') ?> field($model, 'phone') ?> field($model, 'phone2'); ?> field($model, 'email') ?> field($model, 'numbercard'); ?> field($model, 'body') ->textarea([ 'rows' => '3' ]); ?>
field($model, 'delivery') ->dropDownList( ArrayHelper::map( Delivery::find() ->joinWith('lang') ->asArray() ->all(), 'id', 'lang.title' ) ); ?> field($model, 'declaration'); ?> field($model, 'stock'); ?> field($model, 'consignment'); ?> field($model, 'payment') ->dropDownList( [ 'Оплатить наличными' => 'Оплатить наличными', 'Оплатить на карту Приват Банка' => 'Оплатить на карту Приват Банка', 'Оплатить по безналичному расчету' => 'Оплатить по безналичному расчету', 'Оплатить Правекс-телеграф' => 'Оплатить Правекс-телеграф', 'Наложенным платежом' => 'Наложенным платежом', ], [ 'prompt' => '...' ] ); ?> field($model, 'insurance'); ?> field($model, 'amount_imposed'); ?> field($model, 'shipping_by'); ?> field($model, 'city'); echo $form->field($model, 'adress'); echo $form->field($model, 'total'); echo $form->field($model, 'status') ->dropDownList( [ 'Нет' => 'Нет', 'Обработан' => 'Обработан', 'На комплектации' => 'На комплектации', 'Укомплектован' => 'Укомплектован', 'Доставка' => 'Доставка', 'Выполнен' => 'Выполнен', 'Резерв оплачен' => 'Резерв оплачен', 'Резерв неоплачен' => 'Резерв неоплачен', ], [ 'prompt' => '...' ] ); ?> field($model, 'comment') ->textarea([ 'rows' => '3' ]) ?>

  $dataProvider, 'columns' => [ [ 'attribute' => 'id', 'value' => 'id', ], [ 'attribute' => 'sku', 'value' => 'sku', ], [ 'attribute' => 'product_name', 'value' => 'product_name', ], // [ // 'attribute' => 'size', // 'value'=>'mod.size', // 'contentOptions'=>['style'=>'width: 100px;'] // ], // [ // 'attribute' => 'size', // 'value'=>'mod.color', // 'contentOptions'=>['style'=>'width: 100px;'] // ], [ 'attribute' => 'price', 'value' => 'price', ], [ 'attribute' => 'count', 'value' => 'count', ], [ 'attribute' => 'sum_cost', 'value' => 'sum_cost', ], [ 'class' => 'yii\grid\ActionColumn', 'template' => '{delete}', 'buttons' => [ 'delete' => function($url, $model) { return Html::a( '', [ 'order/delete-product', 'id' => $model->id, 'order_id' => (int)\Yii::$app->request->get('id'), ], [ 'class' => 'delete-ajax', ] ); }, ], ], ], ] ) ?>
'btn btn-primary btn-lg btn-block', 'name' => 'login-button', ] ) ?>

Добавить товар в заказ

false, 'id' => 'add_mod', 'options' => [ 'class' => 'form-vertical', 'enctype' => 'multipart/form-data', ], 'fieldConfig' => [ //'template' => "{label}\n
{input}
\n
{error}
", //'labelOptions' => ['class' => 'col-lg-2 control-label'], ], ] ); ?> field($model_orderproduct, 'sku') ?> field($model_orderproduct, 'count') ?> field($model_orderproduct, 'order_id') ->hiddenInput([ 'value' => $model->id ]) ->label(false); ?>
'btn btn-primary', 'name' => 'login-button', ] ) ?>