From 3f5c332ecd77b269950b0f86a94bfdbcfa636b1e Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Wed, 6 Aug 2025 12:09:14 +0900 Subject: [PATCH] table data dysplay fix --- lottery/templates/admin/add_participants.html | 86 ++++++++----------- 1 file changed, 38 insertions(+), 48 deletions(-) diff --git a/lottery/templates/admin/add_participants.html b/lottery/templates/admin/add_participants.html index 7f252f2..85c83bf 100644 --- a/lottery/templates/admin/add_participants.html +++ b/lottery/templates/admin/add_participants.html @@ -71,54 +71,44 @@
{% csrf_token %}
- - - - - - - - - - - - - - - - - - {% for invoice in invoices %} - - - - - - - - - - - - - - {% empty %} - - {% endfor %} - -
СозданЗакрытСчетКлиентНомер клиентаСумма счетаБонусФДДепозитПримечание
{{ invoice.created_at|date:"Y-m-d H:i:s" }}{% if invoice.closed_at %}{{ invoice.closed_at|date:"Y-m-d H:i:s" }}{% else %}—{% endif %}{{ invoice.ext_id }} - {% if invoice.client %} - {{ invoice.client.name|default:"—" }} - {% else %} - Не указан - {% endif %} - - {% if invoice.client %} - {{ invoice.client.club_card_number|default:"—" }} - {% else %} - — - {% endif %} - {{ invoice.sum|floatformat:2 }}{{ invoice.bonus|floatformat:2|default:"—" }}{{ invoice.start_bonus|floatformat:2|default:"—" }}{{ invoice.deposit_sum|floatformat:2|default:"—" }}{{ invoice.notes|default:"—" }}
Нет доступных счетов
+ + + + + + + + + + + + + + + + + + {% for invoice in form.fields.invoices.queryset %} + + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
СозданЗакрытСчётКлиентНомер клиентаСумма счетаБонусФДДепозитПримечание
{{ invoice.created_at|date:"d.m.Y H:i" }}{% if invoice.closed_at %}{{ invoice.closed_at|date:"d.m.Y H:i" | default: "Счет не закрыт!"}}{% else %}—{% endif %}{{ invoice.ext_id|default:"—" }}{{ invoice.client.name|default:"Не указан" }}{{ invoice.client.club_card_number|default:"—" }}{{ invoice.sum|default:"—" }}{{ invoice.bonus|default:"—" }}{{ invoice.start_bonus|default:"—" }}{{ invoice.deposit_sum|default:"—" }}{{ invoice.notes|default:"—" }}
Нет доступных счетов