From e53414d795ec8595533e7b5e8446da91a745ad83 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 26 Sep 2025 14:39:15 -0400 Subject: [PATCH] Refactor park search results and search suggestions to utilize Alpine.js for improved state management. Enhanced event handling and user experience by replacing legacy JavaScript functions with Alpine.js reactive methods. --- .../parks/partials/park_search_results.html | 35 +++++++++++++------ .../partials/homepage/search_results.html | 27 +++++++++++--- 2 files changed, 47 insertions(+), 15 deletions(-) diff --git a/templates/parks/partials/park_search_results.html b/templates/parks/partials/park_search_results.html index 1c6677c3..c0673464 100644 --- a/templates/parks/partials/park_search_results.html +++ b/templates/parks/partials/park_search_results.html @@ -1,9 +1,32 @@ -
+ + +
{% if parks %} {% for park in parks %} {% endfor %} @@ -17,11 +40,3 @@
{% endif %}
- - diff --git a/templates/partials/homepage/search_results.html b/templates/partials/homepage/search_results.html index 34ccdc28..9961cf3e 100644 --- a/templates/partials/homepage/search_results.html +++ b/templates/partials/homepage/search_results.html @@ -173,22 +173,39 @@ {% endif %} -
+ + +
Try:
-{% endif %} \ No newline at end of file +{% endif %}