title = 'Заказ №' . $model->id;
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
Заказ №= $model->id ?>
Заказ успешно сохранен!
'reg-form',
'layout' => 'horizontal',
'options' => [ 'enctype' => 'multipart/form-data' ],
'fieldConfig' => [
//'template' => "{label}\n{input}
\n{error}
",
//'labelOptions' => ['class' => 'col-lg-2 control-label'],
],
]
); ?>
= $model->date_time ?>
= $form->field($model, 'date_dedline')
->widget(
\yii\jui\DatePicker::className(),
[
'clientOptions' => [],
'options' => [
'class' => 'form-control',
'style' => 'width:150px;',
],
'dateFormat' => 'yyyy-MM-dd',
]
) ?>
= $form->field($model, 'surname') ?>
= $form->field($model, 'name') ?>
= $form->field($model, 'patronymic') ?>
= $form->field($model, 'phone') ?>
= $form->field($model, 'phone2') ?>
= $form->field($model, 'email') ?>
= $form->field($model, 'numbercard') ?>
= $form->field($model, 'delivery')
->dropDownList(
ArrayHelper::map(
Delivery::find()
->asArray()
->all(),
'id',
'title'
)
) ?>
= $form->field($model, 'declaration') ?>
= $form->field($model, 'stock') ?>
= $form->field($model, 'consignment') ?>
= $form->field($model, 'payment')
->dropDownList(
[
'Оплатить наличными' => 'Оплатить наличными',
'Оплатить на карту Приват Банка' => 'Оплатить на карту Приват Банка',
'Оплатить по безналичному расчету' => 'Оплатить по безналичному расчету',
'Оплатить Правекс-телеграф' => 'Оплатить Правекс-телеграф',
'Наложенным платежом' => 'Наложенным платежом',
],
[ 'prompt' => '...' ]
); ?>
= $form->field($model, 'insurance') ?>
= $form->field($model, 'amount_imposed') ?>
= $form->field($model, 'shipping_by') ?>
= $form->field($model, 'city') ?>
= $form->field($model, 'adress') ?>
= $form->field($model, 'body')
->textArea([ 'rows' => '6' ]) ?>
= $form->field($model, 'total') ?>
= $form->field($model, 'status')
->dropDownList(
[
'Нет' => 'Нет',
'Обработан' => 'Обработан',
'На комплектации' => 'На комплектации',
'Укомплектован' => 'Укомплектован',
'Доставка' => 'Доставка',
'Выполнен' => 'Выполнен',
'Резерв оплачен' => 'Резерв оплачен',
'Резерв неоплачен' => 'Резерв неоплачен',
],
[ 'prompt' => '...' ]
); ?>
= $form->field($model, 'comment')
->textArea([ 'rows' => '6' ]) ?>
= Html::submitButton(
' Сохранить ',
[
'class' => 'btn btn-primary btn-lg btn-block',
'name' => 'login-button',
]
) ?>
= Html::a(
'Добавить товар',
[
'/admin/order/add',
'order_id' => $model->id,
],
[ 'class' => 'btn btn-success' ]
) ?>
= GridView::widget(
[
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => 'id',
'value' => 'id',
'contentOptions' => [ 'style' => 'width: 70px;' ],
],
[
'attribute' => 'art',
'value' => 'art',
'contentOptions' => [ 'style' => 'width: 50px;' ],
],
[
'attribute' => 'product_name',
'value' => 'product_name',
//'contentOptions'=>['style'=>'max-width: 300px;']
],
[
'attribute' => 'name',
'value' => 'name',
//'contentOptions'=>['style'=>'max-width: 300px;']
],
[
'attribute' => 'cost',
'value' => 'cost',
'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' => 'Удалить?',
]
);
},
],
],
],
]
) ?>