From: fomichev Date: Thu, 13 Mar 2025 13:47:56 +0000 (+0300) Subject: Кнопки для смены статусов только для группы IT X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d2db90eafb3871c5837ccc4b17524117d035760f;p=erp24_rep%2Fyii-erp24%2F.git Кнопки для смены статусов только для группы IT --- 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, [