from django.urls import path
from . import views

app_name = 'presentations'

urlpatterns = [
    path('', views.presentation_list, name='list'),
    path('generate/', views.presentation_generate, name='generate'),
    path('new/', views.presentation_create, name='create'),
    path('<uuid:pk>/', views.presentation_detail, name='detail'),
    path('<uuid:pk>/edit/', views.presentation_edit, name='edit'),
    path('<uuid:pk>/delete/', views.presentation_delete, name='delete'),
    path('<uuid:pk>/present/', views.presentation_view, name='present'),
    path('<uuid:pk>/export/pdf/', views.export_pdf, name='export_pdf'),
    path('<uuid:pk>/export/pptx/', views.export_pptx, name='export_pptx'),
    path('<uuid:pk>/slides/add/', views.slide_add, name='slide_add'),
    path('<uuid:pk>/slides/<uuid:slide_id>/edit/', views.slide_edit, name='slide_edit'),
    path('<uuid:pk>/slides/<uuid:slide_id>/delete/', views.slide_delete, name='slide_delete'),
    path('<uuid:pk>/slides/reorder/', views.slides_reorder, name='slides_reorder'),

    path('templates/', views.template_list, name='template_list'),
    path('templates/create/', views.template_create, name='template_create'),
    path('templates/<uuid:pk>/', views.template_detail, name='template_detail'),
    path('templates/<uuid:pk>/delete/', views.template_delete, name='template_delete'),
    path('templates/<uuid:pk>/parse/', views.template_parse, name='template_parse'),
    path('templates/<uuid:pk>/generate/', views.template_generate, name='template_generate'),
    path('templates/<uuid:pk>/slides/create/', views.template_slide_create, name='template_slide_create'),
    path('templates/<uuid:pk>/slides/<uuid:slide_id>/update/', views.template_slide_update, name='template_slide_update'),
    path('templates/<uuid:pk>/slides/<uuid:slide_id>/delete/', views.template_slide_delete, name='template_slide_delete'),
    path('templates/<uuid:pk>/slides/reorder/', views.template_slide_reorder, name='template_slide_reorder'),
]
