]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Собираем все действия в одной колонке
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 17 Jul 2025 11:39:11 +0000 (14:39 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 17 Jul 2025 11:39:11 +0000 (14:39 +0300)
erp24/views/crud/marketplace-order1c-statuses/index.php

index 9120ef88dfc2962f01517d4285c907c681940960..52e80e6cf93a06884b9fb81c5c35df82e770f4e9 100644 (file)
@@ -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 = '<div class="d-flex flex-column align-items-end">';
+                    $html .= '<div class="" >' . 'Резервирование:<strong > ' . $reserve . '</strong></div>';
+                    $html .= '<div class="" >' . 'Закрытие:<strong > ' . $closing . '</strong></div>';
+                    $html .= '<div class="" >' . 'Редактирование: <strong>' . $editing . '</strong></div>';
+                    $html .= '</div>';
+                    return $html;
                 }
             ],
+
             'status_instruction:ntext',
             [
                 'class' => ActionColumn::class,