# -*- coding: utf-8 -*-

"""URLs to manipulate columns."""
from django.urls import path

from ontask.condition import views

app_name = 'condition'

urlpatterns = [
    #
    # FILTERS
    #
    path(
        '<int:pk>/create_filter/',
        views.FilterCreateView.as_view(),
        name='create_filter'),
    path('<int:pk>/edit_filter/', views.edit_filter, name='edit_filter'),
    path('<int:pk>/delete_filter/', views.delete_filter, name='delete_filter'),

    #
    # CONDITIONS
    #
    path(
        '<int:pk>/create_condition/',
        views.ConditionCreateView.as_view(),
        name='create_condition'),
    path(
        '<int:pk>/edit_condition/',
        views.edit_condition,
        name='edit_condition'),
    path(
        '<int:pk>/delete_condition/',
        views.delete_condition,
        name='delete_condition'),

    # Clone the condition
    path(
        '<int:pk>/clone_condition/',
        views.clone_condition,
        name='clone_condition'),
    path(
        '<int:pk>/<int:action_pk>/clone_condition/',
        views.clone_condition,
        name='clone_condition'),
]

[(18, 'django.urls.path', 'path', (['"""<int:pk>/edit_filter/"""', 'views.edit_filter'], {'name': '"""edit_filter"""'}), False, 'from django.urls import path\n'), (19, 'django.urls.path', 'path', (['"""<int:pk>/delete_filter/"""', 'views.delete_filter'], {'name': '"""delete_filter"""'}), False, 'from django.urls import path\n'), (28, 'django.urls.path', 'path', (['"""<int:pk>/edit_condition/"""', 'views.edit_condition'], {'name': '"""edit_condition"""'}), False, 'from django.urls import path\n'), (32, 'django.urls.path', 'path', (['"""<int:pk>/delete_condition/"""', 'views.delete_condition'], {'name': '"""delete_condition"""'}), False, 'from django.urls import path\n'), (38, 'django.urls.path', 'path', (['"""<int:pk>/clone_condition/"""', 'views.clone_condition'], {'name': '"""clone_condition"""'}), False, 'from django.urls import path\n'), (42, 'django.urls.path', 'path', (['"""<int:pk>/<int:action_pk>/clone_condition/"""', 'views.clone_condition'], {'name': '"""clone_condition"""'}), False, 'from django.urls import path\n'), (16, 'ontask.condition.views.FilterCreateView.as_view', 'views.FilterCreateView.as_view', ([], {}), False, 'from ontask.condition import views\n'), (26, 'ontask.condition.views.ConditionCreateView.as_view', 'views.ConditionCreateView.as_view', ([], {}), False, 'from ontask.condition import views\n')]