From 8b37877b3e255bc18789bbcafd2f579a044d11b9 Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Wed, 6 Aug 2025 12:05:59 +0900 Subject: [PATCH] table rafactor --- lottery/templates/admin/add_participants.html | 99 +++++++++---------- 1 file changed, 48 insertions(+), 51 deletions(-) diff --git a/lottery/templates/admin/add_participants.html b/lottery/templates/admin/add_participants.html index 5694254..7f252f2 100644 --- a/lottery/templates/admin/add_participants.html +++ b/lottery/templates/admin/add_participants.html @@ -71,57 +71,54 @@
{% csrf_token %}
- - - - - - - - - - - - - - - - - - {% 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" }}{% else %}—{% endif %}{{ invoice.ext_id|default:"—" }}{{ invoice.ext_id|default:"—" }} - {% if invoice.client %} - {{ invoice.client.name|default:"—" }} - {% else %} - Не указан - {% endif %} - - {% if invoice.client %} - {{ invoice.client.club_card_number|default:"—" }} - {% else %} - — - {% endif %} - {{ invoice.sum|default:"—" }}{{ invoice.bonus|default:"—" }}{{ invoice.start_bonus|default:"—" }}{{ invoice.deposit_sum|default:"—" }}{{ invoice.notes|default:"—" }}
Нет доступных счетов
+ + + + + + + + + + + + + + + + + + {% 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:"—" }}
Нет доступных счетов