from django.conf.urls import url

from . import views

app_name = 'polls'
urlpatterns = [
    url(r'^create_task$', views.create_task, name='create_task'),
    url(r'^save_task$', views.save_task, name='save_task'),
    url(r'^task_list$', views.list_tasks, name='task_list'),
    url(r'^task_edition/(?P<task_id>[0-9]+)$', views.task_edition, name='edit_task_view'),
    url(r'^edit_task/(?P<task_id>[0-9]+)$', views.edit_task, name='edit_task'),
    url(r'^delete_task/(?P<task_id>[0-9]+)$', views.delete_task, name='delete_task'),
    url(r'^finish_task/(?P<task_id>[0-9]+)$', views.finish_task, name='finish_task'),
    url(r'^task_list/finished$', views.list_tasks_finished, name='task_list_finished'),
    url(r'increase_task_priority/(?P<task_id>[0-9]+)$', views.increase_task_priority, name='increase_task_priority'),
    url(r'decrease_task_priority/(?P<task_id>[0-9]+)$', views.decrease_task_priority, name='decrease_task_priority'),
    url(r'^clean_task_list$', views.clean_task_list, name='clean_task_list'),
]