]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Разделение групп
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 8 Sep 2025 07:42:28 +0000 (10:42 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 8 Sep 2025 07:42:28 +0000 (10:42 +0300)
erp24/views/matrix-type/index.php

index eb75da68fe382fa4c28fbf776f5af36271c0882c..87e2d5c3cdeb3b6ab59b11be02f4e1ec19c2dbcd 100644 (file)
@@ -71,10 +71,20 @@ $this->registerJsFile('/js/matrix-type/index.js', ['position' => \yii\web\View::
         'showOnEmpty' => FALSE,
         'parentColumnName' => 'parent_id',
         'rowOptions' => function($model){
+            $options = [];
+            if($model->parent_id == null){
+                $options['style'] = 'border-top:2px solid #dcdcdc !important;';
+            }
             if ((int)$model->active === 0) {
-                return ['class' => 'text-muted', 'style' => 'background:#ffd1d1;'];
+                if (isset($options['style'])) {
+                    $options['style'] .= 'background:#ffecec;';
+                } else {
+                    $options['style'] = 'background:#ffecec;';
+                }
+                $options['class'] = 'text-muted';
+
             }
-            return [];
+            return $options;
         },
         'columns' => [