from django.conf.urls import *

urlpatterns = patterns('',

    url(r'^$','modules.theory_exam.adminviews.theory_exams',name='admin_theory_exams'),
    url(r'^add/$','modules.theory_exam.adminviews.add_theory_exam',name='admin_add_theory_exam'),
    url(r'^(?P<exam_id>[-\d]+)/edit/$','modules.theory_exam.adminviews.edit_theory_exam', name='admin_edit_theory_exam'),
    url(r'^(?P<exam_id>[-\d]+)/delete/$','modules.theory_exam.adminviews.delete_theory_exam', name='admin_delete_theory_exam'),
    url(r'^(?P<exam_id>[-\d]+)/enable/$','modules.theory_exam.adminviews.enable_theory_exam', name='admin_enable_theory_exam'),
    url(r'^(?P<exam_id>[-\d]+)/disable/$','modules.theory_exam.adminviews.disable_theory_exam', name='admin_disable_theory_exam'),

    url(r'^(?P<exam_id>[-\d]+)/locations/$','modules.theory_exam.adminviews.locations', name='admin_theory_exam_locations'),
    url(r'^(?P<exam_id>[-\d]+)/locations/add/$','modules.theory_exam.adminviews.add_location', name='admin_theory_exams_add_location'),
    url(r'^(?P<exam_id>[-\d]+)/locations/(?P<location_id>[-\d]+)/edit/$','modules.theory_exam.adminviews.edit_location', name='admin_theory_exams_edit_location'),
    url(r'^(?P<exam_id>[-\d]+)/locations/(?P<location_id>[-\d]+)/delete/$','modules.theory_exam.adminviews.delete_location', name='admin_theory_exams_delete_location'),

    url(r'^(?P<exam_id>[-\d]+)/choices/$','modules.theory_exam.adminviews.exam_choices', name='admin_theory_exam_choices'),
    url(r'^(?P<exam_id>[-\d]+)/choices/add/$','modules.theory_exam.adminviews.add_exam_choice', name='admin_theory_exams_add_choice'),
    url(r'^(?P<exam_id>[-\d]+)/choices/(?P<choice_id>[-\d]+)/edit/$','modules.theory_exam.adminviews.edit_exam_choice', name='admin_theory_exams_edit_choice'),
    url(r'^(?P<exam_id>[-\d]+)/choices/(?P<choice_id>[-\d]+)/delete/$','modules.theory_exam.adminviews.delete_exam_choice', name='admin_theory_exams_delete_choice'),

    url(r'^(?P<exam_id>[-\d]+)/applicants/$','modules.theory_exam.adminviews.exam_applicants', name='admin_theory_exam_applicants'),
    url(r'^(?P<exam_id>[-\d]+)/applicants/download/$','modules.theory_exam.adminviews.download_applicants', name='admin_theory_exam_download_applicants'),
    url(r'^(?P<exam_id>[-\d]+)/applicants/external/$','modules.theory_exam.adminviews.download_external', name='admin_theory_exam_download_applicants_external'),
    url(r'^(?P<exam_id>[-\d]+)/applicants/(?P<application_id>[-\d]+)/view/$','modules.theory_exam.adminviews.view_application', name='admin_theory_exam_view_application'),
    url(r'^(?P<exam_id>[-\d]+)/applicants/(?P<application_id>[-\d]+)/delete/$','modules.theory_exam.adminviews.delete_application', name='admin_theory_exam_delete_application'),
    url(r'^(?P<exam_id>[-\d]+)/applicants/(?P<application_id>[-\d]+)/mark-paid/$','modules.theory_exam.adminviews.mark_paid_application', name='admin_theory_exam_mark_application_paid'),

)
