from django.urls import path

from source.apps.dashboard.apps import DashboardConfig
from source.apps.dashboard.views import (
    IndexView,
    ItemCreateView,
    ItemDeleteView,
    ItemUpdateView,
    ScenarioCreateView,
    ScenarioDeleteView,
    ScenarioUpdateView,
    ScenarioView,
    TagCreateView,
    TagDeleteView,
    TagUpdateView,
)

app_name = DashboardConfig.label

urlpatterns = [
    path("", IndexView.as_view(), name="index"),
    path("scenario/<int:pk>/", ScenarioView.as_view(), name="scenario"),
    path("scenario/create/", ScenarioCreateView.as_view(), name="scenario_create"),
    path("scenario/update/<int:pk>/", ScenarioUpdateView.as_view(), name="scenario_update"),
    path("scenario/delete/<int:pk>/", ScenarioDeleteView.as_view(), name="scenario_delete"),
    path("tag/create/<int:scenario_pk>/", TagCreateView.as_view(), name="tag_create"),
    path("tag/update/<int:pk>/", TagUpdateView.as_view(), name="tag_update"),
    path("tag/delete/<int:pk>/", TagDeleteView.as_view(), name="tag_delete"),
    path("item/create/<int:scenario_pk>/", ItemCreateView.as_view(), name="item_create"),
    path("item/update/<int:pk>/", ItemUpdateView.as_view(), name="item_update"),
    path("item/delete/<int:pk>/", ItemDeleteView.as_view(), name="item_delete"),
]
