from django.conf.urls import url
from .import views
from .views import client_search, employee_search
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
    url(r'^$', views.home, name='home'),
    url(r'^client_search/', client_search.as_view(), name='client_search'),
    url(r'^employee_search/', employee_search.as_view(), name='employee_search'),
    url(r'^branches_list', views.branches_list, name='branches_list'),
    url(r'^branch/(?P<pk>\d+)/$', views.branch_detail, name='branch_detail'),
    url(r'^branch/(?P<pk>\d+)/edit/$', views.branch_edit, name='branch_edit'),
    url(r'^branch/new/$', views.branch_new, name='branch_new'),
    url(r'^branch/(?P<pk>\d+)/remove/$', views.branch_remove, name='branch_remove'),
    url(r'^department_list', views.department_list, name='department_list'),
    url(r'^department/(?P<pk>\d+)/$', views.department_detail, name='department_detail'),
    url(r'^department/(?P<pk>\d+)/remove/$', views.department_remove, name='department_remove'),
    url(r'^department/(?P<pk>\d+)/edit/$', views.department_edit, name='department_edit'),
    url(r'^department/new/$', views.department_new, name='department_new'),
    url(r'^post_list', views.post_list, name='post_list'),
    url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
    url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
    url(r'^post/new/$', views.post_new, name='post_new'),
    url(r'^post/(?P<pk>\d+)/remove/$', views.post_remove, name='post_remove'),
    url(r'^paymentmethod_list', views.paymentmethod_list, name='paymentmethod_list'),
    url(r'^paymentmethod/(?P<pk>\d+)/$', views.paymentmethod_detail, name='paymentmethod_detail'),
    url(r'^paymentmethod/(?P<pk>\d+)/remove/$', views.paymentmethod_remove, name='paymentmethod_remove'),
    url(r'^paymentmethod/(?P<pk>\d+)/edit/$', views.paymentmethod_edit, name='paymentmethod_edit'),
    url(r'^paymentmethod/new/$', views.paymentmethod_new, name='paymentmethod_new'),
    url(r'^employeelist', views.employeelist, name='employeelist'),
    url(r'^employee/(?P<pk>\d+)/$', views.employee_detail, name='employee_detail'),
    url(r'^employee/(?P<pk>\d+)/edit/$', views.employee_edit, name='employee_edit'),
    url(r'^employee/new/$', views.employee_new, name='employee_new'),
    url(r'^employee/(?P<pk>\d+)/remove/$', views.employee_remove, name='employee_remove'),
    url(r'^itservice/(?P<pk>\d+)/$', views.itservice_detail, name='itservice_detail'),
    url(r'^itservice/(?P<pk>\d+)/edit/$', views.itservice_edit, name='itservice_edit'),
    url(r'^itservice/new/$', views.itservice_new, name='itservice_new'),
    url(r'^servicetype/(?P<pk>\d+)/$', views.servicetype_detail, name='servicetype_detail'),
    url(r'^servicetype/(?P<pk>\d+)/edit/$', views.servicetype_edit, name='servicetype_edit'),
    url(r'^servicetype/new/$', views.servicetype_new, name='servicetype_new'),
    url(r'^servicetype_list', views.servicetype_list, name='servicetype_list'),
    url(r'^servicetype/(?P<pk>\d+)/remove/$', views.servicetype_remove, name='servicetype_remove'),
    url(r'^itservice/(?P<pk>\d+)/remove/$', views.itservice_remove, name='itservice_remove'),
    url(r'^equipment/(?P<pk>\d+)/$', views.equipment_detail, name='equipment_detail'),
    url(r'^equipment/(?P<pk>\d+)/edit/$', views.equipment_edit, name='equipment_edit'),
    url(r'^equipment_list', views.equipment_list, name='equipment_list'),
    url(r'^equipment/new/$', views.equipment_new, name='equipment_new'),
    url(r'^equipment/(?P<pk>\d+)/remove/$', views.equipment_remove, name='equipment_remove'),
    url(r'^stock_list', views.stock_list, name='stock_list'),
    url(r'^stock/(?P<pk>\d+)/$', views.stock_detail, name='stock_detail'),
    url(r'^stock/(?P<pk>\d+)/edit/$', views.stock_edit, name='stock_edit'),
    url(r'^stock/new/$', views.stock_new, name='stock_new'),
    url(r'^stock/(?P<pk>\d+)/remove/$', views.stock_remove, name='stock_remove'),
    url(r'^provider_list', views.provider_list, name='provider_list'),
    url(r'^provider/(?P<pk>\d+)/$', views.provider_detail, name='provider_detail'),
    url(r'^provider/(?P<pk>\d+)/edit/$', views.provider_edit, name='provider_edit'),
    url(r'^provider/new/$', views.provider_new, name='provider_new'),
    url(r'^provider/(?P<pk>\d+)/remove/$', views.provider_remove, name='provider_remove'),
    url(r'^productlist', views.itservice_list, name='product_list'),
    url(r'^(?P<category_slug>[-\w]+)/$',
                    views.itservice_list,
                    name='service_list_by_category'),
    url(r'^ClientOrderForm$', views.new_person, name='ClientOrderForm'),
    url(r'^client_list', views.client_list, name='client_list'),
    url(r'^order_list', views.order_list, name='order_list'),
    url(r'^order/(?P<pk>\d+)/$', views.order_detail, name='order_detail'),
    url(r'^order/(?P<pk>\d+)/edit/$', views.order_edit, name='order_edit'),
    url(r'^order/(?P<pk>\d+)/remove/$', views.order_remove, name='order_remove'),
    url(r'^clientorder_list', views.clientorder_list, name='clientorder_list'),
     url(r'^client/(?P<pk>\d+)/$', views.client_detail, name='client_detail'),
    url(r'^client/(?P<pk>\d+)/remove/$', views.client_remove, name='client_remove'),
    url(r'^client/new/$', views.client_new, name='client_new'),
    url(r'^order/new/$', views.order_new, name='order_new'),
    url(r'^emporder/new/$', views.emporder_new, name='emporder_new'),
    url(r'^empclient/new/$', views.empclient_new, name='empclient_new'),
    url(r'^client/(?P<pk>\d+)/edit/$', views.client_edit, name='client_edit'),
    url(r'^empclient/(?P<pk>\d+)/edit/$', views.empclient_edit, name='empclient_edit'),
    url(r'^contract_list', views.contract_list, name='contract_list'),
    url(r'^contract/new/$', views.contract_new, name='contract_new'),
    url(r'^contract/(?P<pk>\d+)/$', views.contract_detail, name='contract_detail'),
    url(r'^contract/(?P<pk>\d+)/edit/$', views.contract_edit, name='contract_edit'),
    url(r'^contract/(?P<pk>\d+)/remove/$', views.contract_remove, name='contract_remove'),
    ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)