From: fomichev Date: Wed, 26 Feb 2025 13:00:51 +0000 (+0300) Subject: Метки статуса для остальных X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a4942de68bcad67159a4bb31ad0c3196c35c8a63;p=erp24_rep%2Fyii-erp24%2F.git Метки статуса для остальных --- diff --git a/erp24/views/marketplace-order-status-history/index.php b/erp24/views/marketplace-order-status-history/index.php index 6eef9d2e..31d6a092 100644 --- a/erp24/views/marketplace-order-status-history/index.php +++ b/erp24/views/marketplace-order-status-history/index.php @@ -52,6 +52,10 @@ $this->params['breadcrumbs'][] = $this->title; $class = 'bg-success text-white'; } elseif ($status === 'CANCELLED') { $class = 'bg-danger text-white'; + } elseif ($status === 'PROCESSING') { + $class = 'bg-primary text-white'; + } else { + $class = 'bg-secondary text-white'; } return Html::tag('span', $status, ['class' => "badge $class"]); }, diff --git a/erp24/views/marketplace-orders/index.php b/erp24/views/marketplace-orders/index.php index e2afb514..34d4f856 100644 --- a/erp24/views/marketplace-orders/index.php +++ b/erp24/views/marketplace-orders/index.php @@ -51,6 +51,10 @@ $this->params['breadcrumbs'][] = $this->title; $class = 'bg-success text-white'; } elseif ($status === 'CANCELLED') { $class = 'bg-danger text-white'; + } elseif ($status === 'PROCESSING') { + $class = 'bg-primary text-white'; + } else { + $class = 'bg-secondary text-white'; } return Html::tag('span', $status, ['class' => "badge $class"]); },