from django.urls import path
from .views import (
    DashboardView,
    CourseUpdateView, CourseDetailView, CourseCreateView, CourseListView,
    EnrollListView, CourseDeleteView, CourseCodeChange,
    AssignmentListView, AssignmentCreateView, AssignmentDetailView, AssignmentDeleteView, AssignmentUpdateView
)

app_name = "instructor"
urlpatterns = [

    path('', DashboardView.as_view(), name='dashboard'),
    path('course/', CourseListView.as_view(), name='course'),
    path('course/add/', CourseCreateView.as_view(), name='course-add'),
    path('course/<int:pk>/', CourseDetailView.as_view(), name='course-detail'),
    path('course/<int:pk>/update/', CourseUpdateView.as_view(), name='course-update'),
    path('course/<int:pk>/delete/', CourseDeleteView.as_view(), name='course-delete'),
    path('course/<int:pk>/code/change/', CourseCodeChange.as_view(), name='course-code-change'),
    path('course/<int:course>/members/', EnrollListView.as_view(), name='enroll-list'),

    path('course/<int:course>/assignment/', AssignmentListView.as_view(), name='assigment-list'),
    path('course/<int:course>/assignment/create/', AssignmentCreateView.as_view(), name='assigment-add'),
    path('course/<int:course>/assignment/<int:pk>/', AssignmentDetailView.as_view(), name='assigment-detail'),
    path('course/<int:course>/assignment/<int:pk>/update/', AssignmentUpdateView.as_view(), name='assigment-update'),
    path('course/<int:course>/assignment/<int:pk>/delete/', AssignmentDeleteView.as_view(), name='assigment-delete'),

]

from django.urls import path
from .views import (
    DashboardView,
    CourseUpdateView, CourseDetailView, CourseCreateView, CourseListView,
    EnrollListView, CourseDeleteView, CourseCodeChange,
    AssignmentListView, AssignmentCreateView, AssignmentDetailView, AssignmentDeleteView, AssignmentUpdateView
)

app_name = "instructor"
urlpatterns = [

    path('', DashboardView.as_view(), name='dashboard'),
    path('course/', CourseListView.as_view(), name='course'),
    path('course/add/', CourseCreateView.as_view(), name='course-add'),
    path('course/<int:pk>/', CourseDetailView.as_view(), name='course-detail'),
    path('course/<int:pk>/update/', CourseUpdateView.as_view(), name='course-update'),
    path('course/<int:pk>/delete/', CourseDeleteView.as_view(), name='course-delete'),
    path('course/<int:pk>/code/change/', CourseCodeChange.as_view(), name='course-code-change'),
    path('course/<int:course>/members/', EnrollListView.as_view(), name='enroll-list'),

    path('course/<int:course>/assignment/', AssignmentListView.as_view(), name='assigment-list'),
    path('course/<int:course>/assignment/create/', AssignmentCreateView.as_view(), name='assigment-add'),
    path('course/<int:course>/assignment/<int:pk>/', AssignmentDetailView.as_view(), name='assigment-detail'),
    path('course/<int:course>/assignment/<int:pk>/update/', AssignmentUpdateView.as_view(), name='assigment-update'),
    path('course/<int:course>/assignment/<int:pk>/delete/', AssignmentDeleteView.as_view(), name='assigment-delete'),

]
