From cc04f5876c3a5aa18e3b2daccae98dc5486f536d Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 14 Apr 2017 12:52:50 +0300 Subject: [PATCH] -Testing deadline and view fix --- views/order/view.php | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/views/order/view.php b/views/order/view.php index de8f3a1..8eafd1d 100755 --- a/views/order/view.php +++ b/views/order/view.php @@ -64,17 +64,17 @@ } else { $payment = $model->orderPayment->lang->title; } - - $js = <<< JS + + $js = <<< JS $('[data-toggle="popover"]').popover(); JS; - $this->registerJs($js, View::POS_READY); + $this->registerJs($js, View::POS_READY); ?>
- +

title) ?>

- +

'btn bg-orange' ] ) ?>

- +

Данные заказа

@@ -108,7 +108,7 @@ JS; 'model' => $model, 'attributes' => [ 'id', - 'deadline', + 'deadline:date', 'pay', [ 'label' => 'Причина', @@ -144,8 +144,8 @@ JS; ) ?>
- - + +

Товары

@@ -166,12 +166,12 @@ JS; [ 'attribute' => 'product_name', 'content' => function (OrderProduct $model) { - if (!empty( $model->product_name )) { - - if (empty( $model->productVariant )) { + if (!empty($model->product_name)) { + + if (empty($model->productVariant)) { return ''; } - + return Html::a( StringHelper::truncate($model->product_name, 10, '...'), '#', @@ -201,11 +201,11 @@ JS; 'attribute' => 'productVariant.lang.title', 'label' => \Yii::t('app', 'Цвет'), 'content' => function (OrderProduct $model) { - - if (empty( $model->productVariant )) { + + if (empty($model->productVariant)) { return ''; } - + if (preg_match('@.*\.(png|jpg|gif)@i', $model->productVariant->lang->title)) { return ''; } else { @@ -225,11 +225,11 @@ JS; 'return', [ 'content' => function (OrderProduct $model) { - - if (empty( $model->productVariant )) { + + if (empty($model->productVariant)) { return ''; } - + $content = ''; foreach ($model->productVariant->variantStocks as $stock) { $content .= ''; @@ -253,7 +253,7 @@ JS; ?> - +

История

@@ -284,8 +284,8 @@ JS; ] ); ?> - - + +
-- libgit2 0.21.4
Складкол.
' . $stock->stock->title . '' . $stock->quantity . '