from django.conf.urls import include, url
from django.contrib import admin
from . import views
from django.contrib.auth.decorators import login_required

urlpatterns = [
    url(r'^activities/$',login_required(views.list_activities), name='list_activities'),#GEt
    url(r'^activities/add/$',login_required(views.add_activity), name='add_activity'),#POST
    url(r'^activities/(?P<pk>\d+)/edit$',login_required(views.editActivity.as_view()), name='edit_activity'),#PUT
    url(r'^activities/(?P<pk>\d+)/delete$',login_required(views.delete_activity.as_view()), name='delete_activity'),#PUT

    url(r'^projects/$',login_required(views.list_projects), name='list_projects'),#GET
    url(r'^projects/add/$',login_required(views.add_projects), name='add_projects'),#POST
    url(r'^projects/(?P<pk>\d+)/edit$',login_required(views.editProjects.as_view()), name='edit_projects'),#PUT
    url(r'^projects/(?P<pk>\d+)/delete$',login_required(views.delete_projects.as_view()), name='delete_projects'),#DELETE

    url(r'^config/$',login_required(views.list_config), name='list_config'),#GET
    url(r'^reportes/$',login_required(views.list_reportes), name='list_reportes'),#GEt
    url(r'^reportes/clientes/$',login_required(views.list_clientes), name='list_clientes'),#GEt
    url(r'^actividad_reporte/$',login_required(views.actividad_reporte), name='actividad_reporte'),#GEt
    url(r'^reporteActividades/$',login_required(views.reporteActividades), name='reporteActividades'),#GEt
    url(r'^salidaPdf/$',login_required(views.salidaPdf), name='salidaPdf'),#GEt
    url(r'^reporte/$',login_required(views.reporte), name='reporte'),#GEt
]
