from django.conf.urls import include, url

urlpatterns = [
    url(r'^school_json/$', 'visit.views.school_json', name='school-json'),
    url(r'^school_json/(?P<school_id>\d+)/(?P<staff_id>\d+)/$', 'visit.views.school_json', name='school-json'),
    url(r'^school_json/(?P<school_id>\d+)/(?P<staff_id>\d+)/(?P<key>[\w-]+)/$', 'visit.views.school_json', name='school-json'),
    url(r'^visits_json/$', 'visit.views.visits_json', name='visits-json'),
    url(r'^report/$', 'visit.views.report', name='report'),
    url(r'^report/admin/$', 'visit.views.admin_report', name='admin-report'),
    url(r'^report/data/$', 'visit.views.data_directory', name='data-directory'),
    url(r'^report/(?P<key>[\w-]+)/$', 'visit.views.report', name='report-key'),
    url(r'^payroll_report/$', 'visit.views.payroll_report', name='payroll-report'),
    url(r'^import_upload/$', 'visit.views.import_upload', name='import-upload'),
    url(r'^import_data/$', 'visit.views.import_data', name='import-data'),
    url(r'^student-visits/$', 'visit.views.student_visits_report', name='student-visits'),

#    url(r'^submit/$', 'visit.views.submit', name='submit'),
#    url(r'^submit/(?P<key>[\w-]+)/$', 'visit.views.submit', name='submit'),
    url(r'^myvisits/$', 'visit.views.my_visits', name='my-visits'),
    url(r'^visit/(?P<key>[\w-]+)/$', 'visit.views.visit_detail', name='visit-detail'),
    url(r'^log/$', 'visit.views.visit_log', name='visit-log'),
    url(r'^log/(?P<key>[\w-]+)/$', 'visit.views.visit_log', name='visit-log'),
    url(r'^register/$', 'visit.views.register', name='register'),
    url(r'^register/done/$', 'visit.views.register_done', name='register-done'),
]
