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()->asArray()->all(), 'id', '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', 'contentOptions' => [ 'style' => 'width: 70px;' ], ], [ 'attribute' => 'sku', 'value' => 'sku', 'contentOptions' => [ 'style' => 'width: 50px;' ], ], [ 'attribute' => 'product_name', 'value' => 'product_name', 'contentOptions' => [ 'style' => 'max-width: 300px;' ], ], // [ // 'attribute' => 'size', // 'value'=>'mod.size', // 'contentOptions'=>['style'=>'width: 100px;'] // ], // [ // 'attribute' => 'size', // 'value'=>'mod.color', // 'contentOptions'=>['style'=>'width: 100px;'] // ], [ 'attribute' => 'price', 'value' => 'price', 'contentOptions' => [ 'style' => 'width: 100px;' ], ], [ 'attribute' => 'count', 'value' => 'count', 'contentOptions' => [ 'style' => 'width: 30px;' ], ], [ 'attribute' => 'sum_cost', 'value' => 'sum_cost', 'contentOptions' => [ 'style' => 'width: 100px;' ], ], [ 'class' => 'yii\grid\ActionColumn', 'template' => '{delete}', 'contentOptions' => [ 'style' => 'width: 20px;' ], 'buttons' => [ 'delete' => function ($url, $model) { return Html::a( '', [ '/admin/order/delete_product', 'id' => $model->id, 'order_id' => $_GET[ 'id' ], ], [ 'title' => "Удалить", 'data-confirm' => 'Удалить?', ] ); }, ], ], ], ] ) ?>
'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', ] ) ?>