From: fomichev Date: Thu, 17 Jul 2025 11:39:11 +0000 (+0300) Subject: Собираем все действия в одной колонке X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cd87a0707ed14d1a52c8554c723d94ec61a6d21a;p=erp24_rep%2Fyii-erp24%2F.git Собираем все действия в одной колонке --- 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,