From f7507f1e531be84a813153d8bb3d01409ca8d4a5 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Mon, 10 Mar 2025 11:05:57 -0300 Subject: [PATCH] delete lot summary rework --- lot/templates/delete_lots.html | 133 ++++++++++++++++++++++----------- 1 file changed, 90 insertions(+), 43 deletions(-) diff --git a/lot/templates/delete_lots.html b/lot/templates/delete_lots.html index d8678f4..2d5201e 100644 --- a/lot/templates/delete_lots.html +++ b/lot/templates/delete_lots.html @@ -3,56 +3,103 @@ {% load django_bootstrap5 %} {% block content %} +
+
+

+ {% trans "Are you sure you want to delete the following lot/s?" %} +

-
-
-
-

- {% trans "Are you sure you want to delete the following lot/s?" %} -

+ {% for lot in lots %} +
+ + {{ lot.devices.count }} {% trans "device/s" %} + -
    - {% for lot in lots %} -
  • - {{ lot.name }} - - {{ lot.devices.count }} {% trans "device/s" %} +
    + +
    + + {% if lot.archived %}{% trans "Archived" %}{% else %}{% trans "Open" %}{% endif %} -
  • - {% endfor %} -
- {% if lots_with_devices %} - +
- {% else %} - -
- -
- {% csrf_token %} - {% for selected_id in selected_ids %} - +
{% endfor %} -
- - - {% translate "Cancel" %} - - -
- + {% if lots_with_devices %} + + {% else %} + + {% endif %} + +
+ {% csrf_token %} + {% for selected_id in selected_ids %} + + {% endfor %} + +
+ + + {% translate "Cancel" %} + + +
+
+
{% endblock %}