mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 16:51:07 -05:00
- Add HTMX-powered filtering with instant updates - Add smooth transitions and loading states - Improve visual hierarchy and styling - Add review notes functionality - Add confirmation dialogs for actions - Make navigation sticky - Add hover effects and visual feedback - Improve dark mode support
63 lines
1.7 KiB
Python
63 lines
1.7 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = "rides"
|
|
|
|
urlpatterns = [
|
|
# List views
|
|
path("", views.RideListView.as_view(), name="ride_list"),
|
|
path("create/", views.RideCreateView.as_view(), name="ride_create"),
|
|
|
|
# Search endpoints
|
|
path(
|
|
"search/manufacturers/", views.search_manufacturers, name="search_manufacturers"
|
|
),
|
|
path("search/designers/", views.search_designers, name="search_designers"),
|
|
path("search/models/", views.search_ride_models, name="search_ride_models"),
|
|
|
|
# HTMX endpoints
|
|
path("coaster-fields/", views.show_coaster_fields, name="coaster_fields"),
|
|
|
|
# Category views for global listing
|
|
path(
|
|
"roller_coasters/",
|
|
views.SingleCategoryListView.as_view(),
|
|
{"category": "RC"},
|
|
name="roller_coasters",
|
|
),
|
|
path(
|
|
"dark_rides/",
|
|
views.SingleCategoryListView.as_view(),
|
|
{"category": "DR"},
|
|
name="dark_rides",
|
|
),
|
|
path(
|
|
"flat_rides/",
|
|
views.SingleCategoryListView.as_view(),
|
|
{"category": "FR"},
|
|
name="flat_rides",
|
|
),
|
|
path(
|
|
"water_rides/",
|
|
views.SingleCategoryListView.as_view(),
|
|
{"category": "WR"},
|
|
name="water_rides",
|
|
),
|
|
path(
|
|
"transports/",
|
|
views.SingleCategoryListView.as_view(),
|
|
{"category": "TR"},
|
|
name="transports",
|
|
),
|
|
path(
|
|
"others/",
|
|
views.SingleCategoryListView.as_view(),
|
|
{"category": "OT"},
|
|
name="others",
|
|
),
|
|
|
|
# Detail and update views - must come after category views
|
|
path("<slug:ride_slug>/", views.RideDetailView.as_view(), name="ride_detail"),
|
|
path("<slug:ride_slug>/update/", views.RideUpdateView.as_view(), name="ride_update"),
|
|
]
|