diff --git a/myproject/customers/templates/customers/customer_detail.html b/myproject/customers/templates/customers/customer_detail.html index d18065f..9ce2626 100644 --- a/myproject/customers/templates/customers/customer_detail.html +++ b/myproject/customers/templates/customers/customer_detail.html @@ -6,12 +6,15 @@
-
-

Клиент: {{ customer.full_name }}

+
@@ -20,67 +23,161 @@
-
-
-
Информация о клиенте
+
+
+
Информация о клиенте
- - - - - - - - - - - - - - - - - - - - - - - +
Имя:{{ customer.full_name }}
Email:{{ customer.email|default:"Не указано" }}
Телефон:{{ customer.phone|default:"Не указано" }}
Сумма всех успешных заказов:{{ total_orders_sum|floatformat:2 }} руб.
Сумма заказов за последний год:{{ last_year_orders_sum|floatformat:2 }} руб.
Общий долг по активным заказам:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + + + + + + + + + + + + - - + + +
Имя: - {% if total_debt > 0 %} - {{ total_debt|floatformat:2 }} руб. - (Кол-во заказов: {{ active_orders_count }}) - {% else %} - 0.00 руб. - {% endif %} + {{ customer.name|default:"—" }} + +
+ + + +
+
+
+ + +
+
Телефон: + {{ customer.phone|default:"—" }} + +
+ + + +
+
+
+ + +
+
Email: + {{ customer.email|default:"—" }} + +
+ + + +
+
+
+ + +
+
Заметки: + {{ customer.notes|default:"—" }} + +
+ + + +
+
+ +

Все успешные заказы: + {{ total_orders_sum|floatformat:2 }} руб.
Заметки:{{ customer.notes|default:"Нет" }} За последний год: + {{ last_year_orders_sum|floatformat:2 }} руб. +
Дата создания:{{ customer.created_at|date:"d.m.Y H:i" }} Общий долг: + {% if total_debt > 0 %} + {{ total_debt|floatformat:2 }} руб. + (Заказов: {{ active_orders_count }}) + {% else %} + 0.00 руб. + {% endif %} +

Дата создания:{{ customer.created_at|date:"d.m.Y H:i" }}
Дата обновления:{{ customer.updated_at|date:"d.m.Y H:i" }} Последнее изменение:{{ customer.updated_at|date:"d.m.Y H:i" }}
- +
-
-
-
Каналы связи
+ +
+
+
Каналы связи
@@ -112,12 +209,17 @@ {% if channel.is_primary %}основной{% endif %} {% if channel.notes %}{{ channel.notes }}{% endif %}
-
- {% csrf_token %} - -
+
+ {% csrf_token %} + +
+
{% endfor %} @@ -126,35 +228,202 @@ {% endif %}
-
- - {% if refund_amount > 0 %} -
-