diff --git a/myproject/orders/templates/orders/status_list.html b/myproject/orders/templates/orders/status_list.html index 9392178..8d7683e 100644 --- a/myproject/orders/templates/orders/status_list.html +++ b/myproject/orders/templates/orders/status_list.html @@ -5,225 +5,133 @@ {% block content %} - -
-
-
-

Статусы

-

{{ statuses|length }} статусов в системе

-
+
+
- - Создать - +

Статусы

+
{{ statuses|length }} статусов
+ + Создать +
{% if messages %} {% for message in messages %} - + {% endfor %} {% endif %} -
- {% for status in statuses %} -
-
-
-
-

{{ status.name }}

-
- {{ status.code }} - {% if status.is_system %} - sys - {% endif %} - {% if status.is_positive_end %} - - {% elif status.is_negative_end %} - - {% endif %} - {% if status.orders_count > 0 %} - {{ status.orders_count }} заказ{{ status.orders_count|pluralize:",а,ов" }} - {% endif %} -
-
-
-
- - Редактировать - - {% if not status.is_system and status.orders_count == 0 %} - - Удалить - - {% else %} - - {% endif %} -
-
- {% empty %} -
- -

Статусы не найдены

-
- {% endfor %} +
+ + + + + + + + + + + + + + + + {% for status in statuses %} + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
НазваниеКодТипИтогОписаниеЗаказыДействия
{{ status.order }} + + + {{ status.name }} + {% if status.label %} + ({{ status.label }}) + {% endif %} + {{ status.code }} + {% if status.is_system %} + Системный + {% else %} + Пользовательский + {% endif %} + + {% if status.is_positive_end %} + ✓ Положительный + {% elif status.is_negative_end %} + ✗ Отрицательный + {% else %} + Промежуточный + {% endif %} + + {% if status.description %} + {{ status.description|truncatechars:60 }} + {% else %} + + {% endif %} + + {% if status.orders_count > 0 %} + {{ status.orders_count }} + {% else %} + 0 + {% endif %} + +
+ + + + {% if not status.is_system and status.orders_count == 0 %} + + + + {% else %} + + {% endif %} +
+
+ Статусы не найдены +
{% endblock %}