From: fomichev Date: Mon, 24 Mar 2025 12:10:18 +0000 (+0300) Subject: Добавлены ссылки X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=70e0bb1c52b55818869cdb84af4acd09857ce569;p=erp24_rep%2Fyii-erp24%2F.git Добавлены ссылки --- diff --git a/erp24/views/marketplace-flowwow-emails/index.php b/erp24/views/marketplace-flowwow-emails/index.php index a5ec2d45..c7c69c74 100644 --- a/erp24/views/marketplace-flowwow-emails/index.php +++ b/erp24/views/marketplace-flowwow-emails/index.php @@ -30,7 +30,24 @@ $this->params['breadcrumbs'][] = $this->title; 'id', 'subject', - 'email_status', + + [ + 'attribute' => 'email_status', + 'format' => 'raw', + 'value' => function ($model) { + $text = ''; + $class = ''; + if ($model->email_status === 1) { + $class = 'bg-success text-white'; + $text = 'Обработано'; + } elseif ($model->email_status === 0) { + $class = 'bg-danger text-white'; + $text = 'Необработано'; + } + return Html::tag('span', $text, ['class' => "badge $class"]); + }, + 'filter' => Html::input('text', 'MarketplaceFlowwowEmailsSearch[email_status]', $searchModel->email_status, ['class' => 'form-control']), + ], 'from', 'to', 'date', diff --git a/erp24/views/marketplace-orders/index.php b/erp24/views/marketplace-orders/index.php index 6c98c79b..f454f412 100644 --- a/erp24/views/marketplace-orders/index.php +++ b/erp24/views/marketplace-orders/index.php @@ -26,6 +26,7 @@ YiiAsset::register($this); 'btn btn-success']) ?> 'btn btn-success']) ?> 'btn btn-success']) ?> + 'btn btn-success']) ?>

render('_search', ['model' => $searchModel]); ?>