diff options
| author | spl3g <spleefer6@gmail.com> | 2026-06-01 21:39:49 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@gmail.com> | 2026-06-01 21:39:49 +0300 |
| commit | db1ea9d926e47d02cff75d37098398e7e77df627 (patch) | |
| tree | b6e7cd737d11c8580b81e5e2b85a5643c6c3debf /core/templates | |
| parent | c0fe3e1db70bdba85cf382624817d8d8ea9d6f85 (diff) | |
Diffstat (limited to 'core/templates')
| -rw-r--r-- | core/templates/core/order_list.html | 7 |
1 files changed, 4 insertions, 3 deletions
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 == "Менеджер" %} +<div> + <a href="{% url 'product_list' %}" class="btn">Продукты</a> +</div> <div> <a href="{% url 'order_create' %}" class="btn">Добавить заказ</a> </div> -{% endif %} <div> {% for order in orders %} <div class="product-card"> @@ -20,7 +21,7 @@ {% endfor %} </strong><br/> Пункт выдачи: {{ order.pickup_point.address }}<br/> - Статус: {{ order.status }}<br/> + Статус: {{ order.get_status_display }}<br/> {% if user.role.name == "Администратор" or user.role.name == "Менеджер" %} <a href="{% url 'order_update' order.id %}">Редактировать заказ</a> {% endif %} |
