]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавлены ссылки
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 24 Mar 2025 12:10:18 +0000 (15:10 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 24 Mar 2025 12:10:18 +0000 (15:10 +0300)
erp24/views/marketplace-flowwow-emails/index.php
erp24/views/marketplace-orders/index.php

index a5ec2d45a12e9444d0f38385b127a40c3edb0f24..c7c69c74de29220c26a4299ae6d2bd49d0b1da30 100644 (file)
@@ -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',
index 6c98c79bc9f7536228046642463bed6c04bfacf9..f454f412ee8e0db078d81844e2ff7e325d4ffd58 100644 (file)
@@ -26,6 +26,7 @@ YiiAsset::register($this);
         <?= Html::a('Элементы заказов', ['/marketplace-order-items/index'], ['class' => 'btn btn-success']) ?>
         <?= Html::a('Истории статусов заказов', ['/marketplace-order-status-history/index'], ['class' => 'btn btn-success']) ?>
         <?= Html::a('Типы статусов заказов', ['/marketplace-order-status-types/index'], ['class' => 'btn btn-success']) ?>
+        <?= Html::a('Письма с заказами', ['/marketplace-flowwow-emails/index'], ['class' => 'btn btn-success']) ?>
     </p>
 
     <?php // echo $this->render('_search', ['model' => $searchModel]); ?>