From 4a911f2aee912465dd64c3b5056419b8b05bdcf2 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 20 Feb 2025 14:21:33 +0100 Subject: [PATCH] improve view of list lots now it's a table and is easier to follow --- lot/templates/list_lots.html | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/lot/templates/list_lots.html b/lot/templates/list_lots.html index 4024387..50caf8b 100644 --- a/lot/templates/list_lots.html +++ b/lot/templates/list_lots.html @@ -11,20 +11,26 @@
{% csrf_token %} -{% for tag in lot_tags %} -
-
{{ tag }}
-
- -{% for lot in lots %} -{% if lot.type == tag %} -
-
-
{{ lot.name }}
-
-{% endif %} -{% endfor %} -{% endfor %} + + + + + + + + + {% for tag in lot_tags %} + {% for lot in lots %} + {% if lot.type == tag %} + + + + + {% endif %} + {% endfor %} + {% endfor %} + +
SelectLot Group / Lot
{{ tag }}/{{ lot.name }}