from django.urls import path

from . import views

app_name = "rides"

urlpatterns = [
    # Park-specific list views
    path("", views.RideListView.as_view(), name="ride_list"),
    path("create/", views.RideCreateView.as_view(), name="ride_create"),
    # Park-specific detail views
    path("<slug:ride_slug>/", views.RideDetailView.as_view(), name="ride_detail"),
    path("<slug:ride_slug>/status-actions/", views.ride_status_actions, name="ride_status_actions"),
    path("<slug:ride_slug>/header-badge/", views.ride_header_badge, name="ride_header_badge"),
    path(
        "<slug:ride_slug>/update/",
        views.RideUpdateView.as_view(),
        name="ride_update",
    ),
    path("search/companies/", views.search_companies, name="search_companies"),
    # Search endpoints
    path("search/models/", views.search_ride_models, name="search_ride_models"),
    # HTMX endpoints
    path("coaster-fields/", views.show_coaster_fields, name="coaster_fields"),
]
