diff --git a/.clinerules/thrillwiki-simple.md b/.clinerules/thrillwiki-simple.md index fd58890e..f27b9f9c 100644 --- a/.clinerules/thrillwiki-simple.md +++ b/.clinerules/thrillwiki-simple.md @@ -51,4 +51,6 @@ tailwindcss, django, django-cotton, htmx, alpinejs, django-rest-framework, postg - RichChoiceField over Django choices - Progressive enhancement required +- We prefer to edit existing files instead of creating new ones. + YOU ARE STRICTLY AND ABSOLUTELY FORBIDDEN FROM IGNORING, BYPASSING, OR AVOIDING THESE RULES IN ANY WAY WITH NO EXCEPTIONS!!! \ No newline at end of file diff --git a/templates/maps/partials/location_card.html b/templates/maps/partials/location_card.html index 96851c66..bdbfe7d4 100644 --- a/templates/maps/partials/location_card.html +++ b/templates/maps/partials/location_card.html @@ -3,7 +3,8 @@ {% if location.id %}data-location-id="{{ location.id }}"{% endif %} {% if location.type %}data-location-type="{{ location.type }}"{% endif %} {% if location.latitude and location.longitude %}data-lat="{{ location.latitude }}" data-lng="{{ location.longitude }}"{% endif %} - {% if clickable %}onclick="{{ onclick_action|default:'window.location.href=\''|add:location.get_absolute_url|add:'\'' }}"{% endif %}> + x-data="locationCard()" + {% if clickable %}@click="handleCardClick('{{ location.get_absolute_url }}')"{% endif %}>
@@ -69,7 +70,7 @@ {% endif %} {% if show_map_action %} -
-
- -

Add parks to start planning your trip

-

Search above or click parks on the map

-
+ + +
- -
-