From db1ea9d926e47d02cff75d37098398e7e77df627 Mon Sep 17 00:00:00 2001 From: spl3g Date: Mon, 1 Jun 2026 21:39:49 +0300 Subject: fix status display --- core/templates/core/order_list.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core/templates') diff --git a/core/templates/core/order_list.html b/core/templates/core/order_list.html index 8fe80bd..b3aa9c0 100644 --- a/core/templates/core/order_list.html +++ b/core/templates/core/order_list.html @@ -5,11 +5,12 @@ {% block h1 %}Заказы{% endblock %} {% block content %} -{% if user.role.name == "Администратор" or user.role.name == "Менеджер" %} +
+ Продукты +
Добавить заказ
-{% endif %}
{% for order in orders %}
@@ -20,7 +21,7 @@ {% endfor %}
Пункт выдачи: {{ order.pickup_point.address }}
- Статус: {{ order.status }}
+ Статус: {{ order.get_status_display }}
{% if user.role.name == "Администратор" or user.role.name == "Менеджер" %} Редактировать заказ {% endif %} -- cgit v1.2.3