]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Удаление колонки с переносом
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 25 Oct 2024 12:34:28 +0000 (15:34 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 25 Oct 2024 12:34:28 +0000 (15:34 +0300)
erp24/views/crud/cluster-admin/index.php

index ee436f7cf46062742f00a38a89f0416bc9683aa0..e75a4608592deecbd48eea23b608f53f554bc860 100644 (file)
@@ -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;
 
 <?php
 
-$this->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