mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-30 23:07:02 -05:00
Refactor park list view and update template targets for improved functionality; remove unused CSS class from Tailwind styles; add local settings for unraid configuration.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<fieldset class="flex items-center space-x-2 bg-gray-100 rounded-lg p-1">
|
||||
<legend class="sr-only">View mode selection</legend>
|
||||
<button hx-get="{% url 'parks:park_list' %}?view_mode=grid{% if request.GET.search %}&search={{ request.GET.search }}{% endif %}"
|
||||
hx-target="#park-results"
|
||||
hx-target="#results-container"
|
||||
hx-push-url="true"
|
||||
class="p-2 rounded transition-colors duration-200 {% if request.GET.view_mode == 'grid' or not request.GET.view_mode %}bg-white shadow-sm{% endif %}"
|
||||
aria-label="Grid view"
|
||||
@@ -22,7 +22,7 @@
|
||||
</svg>
|
||||
</button>
|
||||
<button hx-get="{% url 'parks:park_list' %}?view_mode=list{% if request.GET.search %}&search={{ request.GET.search }}{% endif %}"
|
||||
hx-target="#park-results"
|
||||
hx-target="#results-container"
|
||||
hx-push-url="true"
|
||||
class="p-2 rounded transition-colors duration-200 {% if request.GET.view_mode == 'list' %}bg-white shadow-sm{% endif %}"
|
||||
aria-label="List view"
|
||||
@@ -100,7 +100,7 @@
|
||||
<form id="filter-form"
|
||||
x-ref="filterForm"
|
||||
hx-get="{% url 'parks:park_list' %}"
|
||||
hx-target="#park-results"
|
||||
hx-target="#results-container"
|
||||
hx-push-url="true"
|
||||
hx-trigger="change, submit"
|
||||
class="mt-4">
|
||||
|
||||
Reference in New Issue
Block a user