# -*- 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'),
]

[((313, 381), 'django.urls.path', 'path', (['"""<int:pk>/edit_filter/"""', 'views.edit_filter'], {'name': '"""edit_filter"""'}), "('<int:pk>/edit_filter/', views.edit_filter, name='edit_filter')\n", (317, 381), False, 'from django.urls import path\n'), ((387, 461), 'django.urls.path', 'path', (['"""<int:pk>/delete_filter/"""', 'views.delete_filter'], {'name': '"""delete_filter"""'}), "('<int:pk>/delete_filter/', views.delete_filter, name='delete_filter')\n", (391, 461), False, 'from django.urls import path\n'), ((624, 701), 'django.urls.path', 'path', (['"""<int:pk>/edit_condition/"""', 'views.edit_condition'], {'name': '"""edit_condition"""'}), "('<int:pk>/edit_condition/', views.edit_condition, name='edit_condition')\n", (628, 701), False, 'from django.urls import path\n'), ((732, 820), 'django.urls.path', 'path', (['"""<int:pk>/delete_condition/"""', 'views.delete_condition'], {'name': '"""delete_condition"""'}), "('<int:pk>/delete_condition/', views.delete_condition, name=\n    'delete_condition')\n", (736, 820), False, 'from django.urls import path\n'), ((873, 958), 'django.urls.path', 'path', (['"""<int:pk>/clone_condition/"""', 'views.clone_condition'], {'name': '"""clone_condition"""'}), "('<int:pk>/clone_condition/', views.clone_condition, name='clone_condition'\n    )\n", (877, 958), False, 'from django.urls import path\n'), ((984, 1084), 'django.urls.path', 'path', (['"""<int:pk>/<int:action_pk>/clone_condition/"""', 'views.clone_condition'], {'name': '"""clone_condition"""'}), "('<int:pk>/<int:action_pk>/clone_condition/', views.clone_condition,\n    name='clone_condition')\n", (988, 1084), False, 'from django.urls import path\n'), ((244, 276), 'ontask.condition.views.FilterCreateView.as_view', 'views.FilterCreateView.as_view', ([], {}), '()\n', (274, 276), False, 'from ontask.condition import views\n'), ((549, 584), 'ontask.condition.views.ConditionCreateView.as_view', 'views.ConditionCreateView.as_view', ([], {}), '()\n', (582, 584), False, 'from ontask.condition import views\n')]