# Path: kraut_incident/views.py
# def home(request):
# def list_incidents(request):
# def abort_task_incident(request, incident_id, task_id):
# def resolve_task_incident(request, incident_id, task_id):
# def remove_task_incident(request, incident_id, task_id):
# def remove_contact_incident(request, incident_id, contact_id):
# def remove_handler_incident(request, incident_id, handler_id):
# def add_contact_incident(request, incident_id):
# def add_handler_incident(request, incident_id):
# def add_task(request, incident_id):
# def update_incident_header(request, incident_id):
# def comment_incident(request, incident_id):
# def delete_comment_incident(request, incident_id, comment_id):
# def close_incident(request, incident_id):
# def view_incident(request, incident_id):
# def delete_incident(request, incident_id):
# def create_handler(request):
# def create_contact(request):
# def new_incident(request):


from django.conf.urls import url
from kraut_incident import views

urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^list/$', views.list_incidents, name='list'),
    url(r'^new/$', views.new_incident, name='new'),
    url(r'^incident/(?P<incident_id>\d+)/delete/$', views.delete_incident, name='delete_incident'),
    url(r'^incident/(?P<incident_id>\d+)/view/$', views.view_incident, name='view_incident'),
    url(r'^incident/(?P<incident_id>\d+)/close/$', views.close_incident, name='close_incident'),
    url(r'^incident/(?P<incident_id>\d+)/update/header/$', views.update_incident_header, name='update_incident_header'),
    url(r'^incident/(?P<incident_id>\d+)/add/task/$', views.add_task, name='add_task'),
    url(r'^incident/(?P<incident_id>\d+)/add/handler/$', views.add_handler_incident, name='add_handler_incident'),
    url(r'^incident/(?P<incident_id>\d+)/add/contact/$', views.add_contact_incident, name='add_contact_incident'),
    url(r'^incident/(?P<incident_id>\d+)/remove/handler/(?P<handler_id>\d+)/$', views.remove_handler_incident, name='remove_handler_incident'),
    url(r'^incident/(?P<incident_id>\d+)/remove/contact/(?P<contact_id>\d+)/$', views.remove_contact_incident, name='remove_contact_incident'),
    url(r'^incident/(?P<incident_id>\d+)/remove/task/(?P<task_id>\d+)/$', views.remove_task_incident, name='remove_task_incident'),
    url(r'^incident/(?P<incident_id>\d+)/resolve/task/(?P<task_id>\d+)/$', views.resolve_task_incident, name='resolve_task_incident'),
    url(r'^incident/(?P<incident_id>\d+)/abort/task/(?P<task_id>\d+)/$', views.abort_task_incident, name='abort_task_incident'),
    url(r'^incident/(?P<incident_id>\d+)/add/comment/$', views.comment_incident, name='comment_incident'),
    url(r'^incident/(?P<incident_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_incident, name='delete_comment_incident'),
    url(r'^create_contact/$', views.create_contact, name='create_contact'),
    url(r'^create_handler/$', views.create_handler, name='create_handler'),

# Path: kraut_incident/views.py
# def home(request):
# def list_incidents(request):
# def abort_task_incident(request, incident_id, task_id):
# def resolve_task_incident(request, incident_id, task_id):
# def remove_task_incident(request, incident_id, task_id):
# def remove_contact_incident(request, incident_id, contact_id):
# def remove_handler_incident(request, incident_id, handler_id):
# def add_contact_incident(request, incident_id):
# def add_handler_incident(request, incident_id):
# def add_task(request, incident_id):
# def update_incident_header(request, incident_id):
# def comment_incident(request, incident_id):
# def delete_comment_incident(request, incident_id, comment_id):
# def close_incident(request, incident_id):
# def view_incident(request, incident_id):
# def delete_incident(request, incident_id):
# def create_handler(request):
# def create_contact(request):
# def new_incident(request):


# Path: kraut_incident/urls.py
from django.conf.urls import url
from kraut_incident import views


urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^list/$', views.list_incidents, name='list'),
    url(r'^new/$', views.new_incident, name='new'),
    url(r'^incident/(?P<incident_id>\d+)/delete/$', views.delete_incident, name='delete_incident'),
    url(r'^incident/(?P<incident_id>\d+)/view/$', views.view_incident, name='view_incident'),
    url(r'^incident/(?P<incident_id>\d+)/close/$', views.close_incident, name='close_incident'),
    url(r'^incident/(?P<incident_id>\d+)/update/header/$', views.update_incident_header, name='update_incident_header'),
    url(r'^incident/(?P<incident_id>\d+)/add/task/$', views.add_task, name='add_task'),
    url(r'^incident/(?P<incident_id>\d+)/add/handler/$', views.add_handler_incident, name='add_handler_incident'),
    url(r'^incident/(?P<incident_id>\d+)/add/contact/$', views.add_contact_incident, name='add_contact_incident'),
    url(r'^incident/(?P<incident_id>\d+)/remove/handler/(?P<handler_id>\d+)/$', views.remove_handler_incident, name='remove_handler_incident'),
    url(r'^incident/(?P<incident_id>\d+)/remove/contact/(?P<contact_id>\d+)/$', views.remove_contact_incident, name='remove_contact_incident'),
    url(r'^incident/(?P<incident_id>\d+)/remove/task/(?P<task_id>\d+)/$', views.remove_task_incident, name='remove_task_incident'),
    url(r'^incident/(?P<incident_id>\d+)/resolve/task/(?P<task_id>\d+)/$', views.resolve_task_incident, name='resolve_task_incident'),
    url(r'^incident/(?P<incident_id>\d+)/abort/task/(?P<task_id>\d+)/$', views.abort_task_incident, name='abort_task_incident'),
    url(r'^incident/(?P<incident_id>\d+)/add/comment/$', views.comment_incident, name='comment_incident'),
    url(r'^incident/(?P<incident_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_incident, name='delete_comment_incident'),
    url(r'^create_contact/$', views.create_contact, name='create_contact'),
    url(r'^create_handler/$', views.create_handler, name='create_handler'),

]