diff options
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 %} |
