From 63a965ae5c18581f482463b21c91381ba575ce5b Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Sat, 3 Jan 2026 14:46:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D0=B5=D1=86=20=D0=97?= =?UTF-8?q?=D0=B0=D0=BC=D0=B5=D1=82=D0=BA=D0=B8=20=D0=B2=20=D1=81=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=BE=D0=BA=20=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Новый столбец Notes в таблице клиентов - Текст обрезается до 10 слов (truncatewords) - Максимальная ширина 300px с ellipsis - При наведении показывается полный текст через title - Если заметок нет, отображается тире (—) --- .../customers/templates/customers/customer_list.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/myproject/customers/templates/customers/customer_list.html b/myproject/customers/templates/customers/customer_list.html index 397d2f4..2ea2508 100644 --- a/myproject/customers/templates/customers/customer_list.html +++ b/myproject/customers/templates/customers/customer_list.html @@ -63,6 +63,7 @@ Имя Email Телефон + Заметки Действия @@ -75,6 +76,16 @@ {{ customer.full_name }} {{ customer.email|default:'—' }} {{ customer.phone|default:'—' }} + + {% if customer.notes %} +
+ {{ customer.notes|truncatewords:10 }} +
+ {% else %} + — + {% endif %} +