diff --git a/views/order/_form.php b/views/order/_form.php index 05aa132..8d1febd 100755 --- a/views/order/_form.php +++ b/views/order/_form.php @@ -379,7 +379,24 @@ JS; [ 'class' => SerialColumn::className(), ], - 'sku', + [ + 'attribute' => 'sku', + 'content' => function($model) { + return Html::a( + $model->sku, + '#', + [ + 'onclick' => 'event.preventDefault();', + 'data-toggle' => 'popover', + 'data-placement' => 'right', + 'data-html' => 'true', + 'data-content' => Html::img($model->productVariant->imageUrl, [ + 'class' => 'img-rounded', + ]), + ] + ); + }, + ], [ 'attribute' => 'product_name', 'content' => function($model) { diff --git a/views/order/index.php b/views/order/index.php index 82f37b7..9d8827f 100755 --- a/views/order/index.php +++ b/views/order/index.php @@ -37,7 +37,7 @@ JS; ?>
- = Html::a(\Yii::t('app', 'Добавить заказ'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> + = Html::a(\Yii::t('app', 'Добавить заказ'), [ 'create' ], [ 'class' => 'btn btn-success btn-lg' ]) ?>
-+ -
-