From 40e5cf316222b36aff69f2fa43840905771e9668 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 26 Sep 2025 14:27:47 -0400 Subject: [PATCH] Refactor ride form template to utilize Alpine.js for state management. Enhanced form submission handling and improved search result clearing functionality for better user experience. --- .../partials/dashboard_content.html | 45 +++--- templates/rides/partials/ride_form.html | 130 +++++++++++------- 2 files changed, 107 insertions(+), 68 deletions(-) diff --git a/templates/moderation/partials/dashboard_content.html b/templates/moderation/partials/dashboard_content.html index d7dee29f..e1b95e2f 100644 --- a/templates/moderation/partials/dashboard_content.html +++ b/templates/moderation/partials/dashboard_content.html @@ -199,24 +199,31 @@ diff --git a/templates/rides/partials/ride_form.html b/templates/rides/partials/ride_form.html index 12f3de6f..419180b0 100644 --- a/templates/rides/partials/ride_form.html +++ b/templates/rides/partials/ride_form.html @@ -1,59 +1,85 @@ {% load static %} -
+ {% csrf_token %} @@ -86,7 +112,9 @@ document.addEventListener('click', function(e) {
-
+
@@ -103,7 +131,9 @@ document.addEventListener('click', function(e) {
-
+
@@ -120,7 +150,9 @@ document.addEventListener('click', function(e) {
-
+