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 }} статусов в системе
-{{ status.name }}
- -Статусы не найдены
-| № | ++ | Название | +Код | +Тип | +Итог | +Описание | +Заказы | +Действия | +
|---|---|---|---|---|---|---|---|---|
| {{ 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 %} + | ++ + | +
| + Статусы не найдены + | +||||||||