From: Vladimir Fomichev Date: Mon, 8 Sep 2025 07:42:28 +0000 (+0300) Subject: Разделение групп X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=2a63f33dbc63a6f0121e453d3bfa105f9d84f160;p=erp24_rep%2Fyii-erp24%2F.git Разделение групп --- 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' => [