From 2a63f33dbc63a6f0121e453d3bfa105f9d84f160 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Mon, 8 Sep 2025 10:42:28 +0300 Subject: [PATCH] =?utf8?q?=D0=A0=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=B8=D0=B5=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/matrix-type/index.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/erp24/views/matrix-type/index.php b/erp24/views/matrix-type/index.php index eb75da68..87e2d5c3 100644 --- a/erp24/views/matrix-type/index.php +++ b/erp24/views/matrix-type/index.php @@ -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' => [ -- 2.39.5