From acc8308fd200f8859eaf1cef066af499924b1eae Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:42:07 -0400 Subject: [PATCH] Refactor location widget to utilize Alpine.js for state management and HTMX for AJAX interactions. Removed legacy JavaScript functions and streamlined event handling for improved user experience. --- templates/parks/partials/location_widget.html | 504 ++++++------------ 1 file changed, 164 insertions(+), 340 deletions(-) diff --git a/templates/parks/partials/location_widget.html b/templates/parks/partials/location_widget.html index 2047c44a..62051073 100644 --- a/templates/parks/partials/location_widget.html +++ b/templates/parks/partials/location_widget.html @@ -1,5 +1,6 @@ {% load static %} + -
- {# Search Form #} -
- - -
- -
-
- - {# Map Container #} -
-
-
- - {# Location Form Fields #} -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - {# Hidden Coordinate Fields #} - -
- - + }" + @click.outside="showResults = false"> + + {# Search Form #} +
+ + + +
+ +
+
+ + {# Map Container #} +
+
+ +
+
+
+

Loading map...

+
+
+
+
+ + {# Location Form Fields #} +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + {# Hidden Coordinate Fields #} + + + + +