From cd87a0707ed14d1a52c8554c723d94ec61a6d21a Mon Sep 17 00:00:00 2001 From: fomichev Date: Thu, 17 Jul 2025 14:39:11 +0300 Subject: [PATCH] =?utf8?q?=D0=A1=D0=BE=D0=B1=D0=B8=D1=80=D0=B0=D0=B5=D0=BC?= =?utf8?q?=20=D0=B2=D1=81=D0=B5=20=D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2?= =?utf8?q?=D0=B8=D1=8F=20=D0=B2=20=D0=BE=D0=B4=D0=BD=D0=BE=D0=B9=20=D0=BA?= =?utf8?q?=D0=BE=D0=BB=D0=BE=D0=BD=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../marketplace-order1c-statuses/index.php | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/erp24/views/crud/marketplace-order1c-statuses/index.php b/erp24/views/crud/marketplace-order1c-statuses/index.php index 9120ef88..52e80e6c 100644 --- a/erp24/views/crud/marketplace-order1c-statuses/index.php +++ b/erp24/views/crud/marketplace-order1c-statuses/index.php @@ -49,17 +49,21 @@ $this->params['breadcrumbs'][] = $this->title; 'status', 'status_id', [ - 'attribute' => 'allowed_reserve', - 'value' => function ($model) { - return $model->allowed_reserve === 0 ? 'Нет' : 'Да'; - } - ], - [ - 'attribute' => 'allowed_closing', + 'label' => 'Действия', + 'format' => 'raw', 'value' => function ($model) { - return $model->allowed_closing === 0 ? 'Нет' : 'Да'; + $reserve = $model->allowed_reserve === 0 ? 'Нет' : 'Да'; + $closing = $model->allowed_closing === 0 ? 'Нет' : 'Да'; + $editing = $model->allowed_editing === 0 ? 'Нет' : 'Да'; + $html = '
'; + $html .= '
' . 'Резервирование: ' . $reserve . '
'; + $html .= '
' . 'Закрытие: ' . $closing . '
'; + $html .= '
' . 'Редактирование: ' . $editing . '
'; + $html .= '
'; + return $html; } ], + 'status_instruction:ntext', [ 'class' => ActionColumn::class, -- 2.39.5