From: fomichev Date: Fri, 25 Oct 2024 12:34:28 +0000 (+0300) Subject: Удаление колонки с переносом X-Git-Tag: 1.7~228^2~15 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=54379dd84546c1fe70db683b191b9c17a0032c2b;p=erp24_rep%2Fyii-erp24%2F.git Удаление колонки с переносом --- 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