from django.urls import path
from django.contrib import admin
from django.conf.urls import url
from survey import views as survey_views
from accounts import views as accounts_views
from .views import SurveyListView, SurveyDetailView, SurveyCreateView, SurveyUpdateView, SurveyDeleteView


app_name = 'survey'

urlpatterns=[
    path('dashboard/', survey_views.dashboard_view, name='dashboard'),
    path('survey/', survey_views.survey_view, name='survey'),
    path('uploadsurvey/', SurveyCreateView.as_view(), name='uploadsurvey'),
    #path('tracksurvey/', SurveyListView.as_view() , name='tracksurvey'),
    path('tracksurvey/', survey_views.tracksurvey_view , name='tracksurvey'),
    path('tracksurvey/survey/<int:pk>/', SurveyDetailView.as_view() , name='tracksurvey-detail'),
    path('rewards/', survey_views.rewards_view, name='rewards'),
    path('tracksurvey/survey/<int:pk>/update/', SurveyUpdateView.as_view(), name='updatesurvey'),
    path('tracksurvey/survey/<int:pk>/delete/', SurveyDeleteView.as_view(), name='deletesurvey'),
    path('completedsurveys/', survey_views.completedsurveys_view , name='completedsurveys'),
    path('dashboard/<int:pk>/', survey_views.completedsurveys_update , name='completedsurveys_update'),
    path('rewards/', survey_views.rewards_view, name='rewards'),
    path('shoprewards/', survey_views.shoprewards_view, name='shoprewards'),
    path('rewards/<int:pk>', survey_views.redeem_update, name='redeem_update'),
    path('redeemedrewards/', survey_views.redeemedrewards_view , name='redeemedrewards'),
    path('redeemedrewards/<int:pk>', survey_views.used_update, name='used_update'),
    path('usedrewards/', survey_views.usedrewards_view, name='usedrewards'),
    path('report/', survey_views.report_view, name='report'),
    path('privacy/', survey_views.privacy_view, name='privacy')

]