From f8d38e6172eef55195ad515ee6a2ebb5f6e6b3f4 Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Thu, 24 Jul 2025 18:42:52 +0300 Subject: [PATCH] lead detail extra stuff removed --- inventory/views.py | 3 +- templates/crm/leads/lead_detail.html | 55 +++++++--------------------- 2 files changed, 15 insertions(+), 43 deletions(-) diff --git a/inventory/views.py b/inventory/views.py index 28fd6315..39cc68fc 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -4345,8 +4345,7 @@ def sales_list_view(request, dealer_slug): # # Q(item_details__icontains=query) # # ).distinct() - # for so in qs: - # if query in so.customer_customer + #r paginator = Paginator(qs, 30) page_number = request.GET.get("page") diff --git a/templates/crm/leads/lead_detail.html b/templates/crm/leads/lead_detail.html index c10767c9..ff4654d3 100644 --- a/templates/crm/leads/lead_detail.html +++ b/templates/crm/leads/lead_detail.html @@ -37,30 +37,17 @@ {% include "crm/leads/partials/update_action.html" %}
-

{{ _("Lead Details") }}

-
-
-
-
- -
-
+

{{ _("Lead Details") }}

+
-
+
-
-

{{ _("Lead Details") }}

- -
+
@@ -807,24 +794,13 @@
-
+
-
- -
    -
- +
+
@@ -971,20 +947,17 @@ } // Close modal after successful form submission - /*document.body.addEventListener('htmx:afterSwap', function(evt) { + document.body.addEventListener('htmx:afterSwap', function(evt) { if (evt.detail.target.id === 'main_content') { - document.querySelectorAll('.modal').forEach(function(modal) { - var modal = bootstrap.Modal.getInstance(); - if (modal) { - modal.hide(); - } - }); - } + var modal = bootstrap.Modal.getInstance(document.getElementById('exampleModal')); + if (modal) { + modal.hide(); + } + } }); - */ // Cleanup modal backdrop if needed -/* document.body.addEventListener('htmx:beforeSwap', function(evt) { + document.body.addEventListener('htmx:beforeSwap', function(evt) { if (evt.detail.target.id === 'main_content') { var backdrops = document.querySelectorAll('.modal-backdrop'); backdrops.forEach(function(backdrop) {