From d2db90eafb3871c5837ccc4b17524117d035760f Mon Sep 17 00:00:00 2001 From: fomichev Date: Thu, 13 Mar 2025 16:47:56 +0300 Subject: [PATCH] =?utf8?q?=D0=9A=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=B4?= =?utf8?q?=D0=BB=D1=8F=20=D1=81=D0=BC=D0=B5=D0=BD=D1=8B=20=D1=81=D1=82?= =?utf8?q?=D0=B0=D1=82=D1=83=D1=81=D0=BE=D0=B2=20=D1=82=D0=BE=D0=BB=D1=8C?= =?utf8?q?=D0=BA=D0=BE=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D1=80=D1=83=D0=BF?= =?utf8?q?=D0=BF=D1=8B=20IT?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/marketplace-orders/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erp24/views/marketplace-orders/index.php b/erp24/views/marketplace-orders/index.php index 494c2252..3f27e60e 100644 --- a/erp24/views/marketplace-orders/index.php +++ b/erp24/views/marketplace-orders/index.php @@ -65,7 +65,7 @@ YiiAsset::register($this); $output = Html::tag('span', $status, ['class' => "badge $class"]); $output .= '
'; - if ($status === 'PROCESSING') { + if ($status === 'PROCESSING' && Yii::$app->user->identity->group_id == 81) { $readyUrl = Url::to(['update-to-ready-status', 'id' => $model->id]); $cancelUrl = Url::to(['update-to-cancelled-status', 'id' => $model->id]); if ($substatus === 'STARTED') { @@ -73,7 +73,8 @@ YiiAsset::register($this); Html::a('Готов', $readyUrl, [ 'class' => 'btn btn-sm btn-success', 'data-method' => 'post', - 'data-confirm' => 'Вы уверены, что хотите перевести заказ в статус "Готов к отправке"?', + 'data-confirm' => + 'Вы уверены, что хотите перевести заказ в статус "Готов к отправке"?', ]) . ' '; } $output .= Html::a('Отменить', $cancelUrl, [ -- 2.39.5