from django.conf.urls import url

from doctor_calendar import views as v

app_name = 'doctor_calendar'
urlpatterns = [
    url(r'^calendar/(?P<pk>\d+)/(?P<week_num>\d+)$', v.PatientCalendarView.as_view(), name='calendar'),
    url(r'^calendar-next/(?P<pk>\d+)/(?P<week_num>\d+)$', v.next_week, name='calendar-next'),
    url(r'^calendar-next/(?P<week_num>\d+)$', v.doctor_next_week, name='doctor-calendar-next'),
    url(r'^schedule/(?P<week_num>\d+)$', v.DoctorCalenderView.as_view(), name='schedule'),
    url(r'^verify/(?P<pk>\d+)/(?P<week_num>\d+)$', v.VerifyView.as_view(), name='verify'),
    url(r'^calendar/(?P<doc_pk>\d+)/cancel/(?P<usr_pk>\d+)/(?P<evt_pk>\d+)$', v.cancel, name='cancel-appointment'),

]
