From 54379dd84546c1fe70db683b191b9c17a0032c2b Mon Sep 17 00:00:00 2001 From: fomichev Date: Fri, 25 Oct 2024 15:34:28 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= =?utf8?q?=20=D0=BA=D0=BE=D0=BB=D0=BE=D0=BD=D0=BA=D0=B8=20=D1=81=20=D0=BF?= =?utf8?q?=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D1=81=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/crud/cluster-admin/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/erp24/views/crud/cluster-admin/index.php b/erp24/views/crud/cluster-admin/index.php index ee436f7c..e75a4608 100644 --- a/erp24/views/crud/cluster-admin/index.php +++ b/erp24/views/crud/cluster-admin/index.php @@ -49,7 +49,7 @@ $this->params['breadcrumbs'][] = $this->title; }, 'format' => 'raw', ], - [ + /*[ 'attribute' => 'transfer', 'label' => 'Назначить кустового', 'format' => 'raw', @@ -75,7 +75,7 @@ $this->params['breadcrumbs'][] = $this->title; } return null; }, - ], + ],*/ [ 'class' => 'yii\grid\ActionColumn', 'template' => '{view} {create}', @@ -84,7 +84,7 @@ $this->params['breadcrumbs'][] = $this->title; return Html::a('Просмотреть', ['view', 'id' => $key], ['class' => 'btn btn-primary']); }, 'create' => function ($url, $model, $key) { - // Показываем кнопку только если нет записей для кластера + if ($model['status'] === 'Нет записей') { return Html::a('Создать новую привязку', ['create', 'cluster_id' => $key], ['class' => 'btn btn-success']); } @@ -99,7 +99,7 @@ $this->params['breadcrumbs'][] = $this->title; registerJs(" +/*$this->registerJs(" $('.transfer-select').on('change', function () { let adminId = $(this).val(); let clusterId = $(this).data('id'); @@ -122,5 +122,5 @@ $this->registerJs(" }); } }); -"); +");*/ ?> \ No newline at end of file -- 2.39.5