54 lines
1.9 KiB
Python
54 lines
1.9 KiB
Python
from django.urls import path
|
|
|
|
from wagtail.admin.views import workflows
|
|
|
|
app_name = "wagtailadmin_workflows"
|
|
urlpatterns = [
|
|
path("list/", workflows.Index.as_view(), name="index"),
|
|
path(
|
|
"list/results/",
|
|
workflows.Index.as_view(results_only=True),
|
|
name="index_results",
|
|
),
|
|
path("add/", workflows.Create.as_view(), name="add"),
|
|
path("enable/<int:pk>/", workflows.enable_workflow, name="enable"),
|
|
path("disable/<int:pk>/", workflows.Disable.as_view(), name="disable"),
|
|
path("edit/<int:pk>/", workflows.Edit.as_view(), name="edit"),
|
|
path("usage/<int:pk>/", workflows.usage, name="usage"),
|
|
path("remove/<int:page_pk>/", workflows.remove_workflow, name="remove"),
|
|
path(
|
|
"remove/<int:page_pk>/<int:workflow_pk>/",
|
|
workflows.remove_workflow,
|
|
name="remove",
|
|
),
|
|
path(
|
|
"tasks/add/<str:app_label>/<str:model_name>/",
|
|
workflows.CreateTask.as_view(),
|
|
name="add_task",
|
|
),
|
|
path("tasks/select_type/", workflows.select_task_type, name="select_task_type"),
|
|
path("tasks/index/", workflows.TaskIndex.as_view(), name="task_index"),
|
|
path(
|
|
"tasks/index/results/",
|
|
workflows.TaskIndex.as_view(results_only=True),
|
|
name="task_index_results",
|
|
),
|
|
path("tasks/edit/<int:pk>/", workflows.EditTask.as_view(), name="edit_task"),
|
|
path(
|
|
"tasks/disable/<int:pk>/", workflows.DisableTask.as_view(), name="disable_task"
|
|
),
|
|
path("tasks/enable/<int:pk>/", workflows.enable_task, name="enable_task"),
|
|
path("task_chooser/", workflows.TaskChooserView.as_view(), name="task_chooser"),
|
|
path(
|
|
"task_chooser/results/",
|
|
workflows.TaskChooserResultsView.as_view(),
|
|
name="task_chooser_results",
|
|
),
|
|
path(
|
|
"task_chooser/create/",
|
|
workflows.TaskChooserCreateView.as_view(),
|
|
name="task_chooser_create",
|
|
),
|
|
path("task_chooser/<int:task_id>/", workflows.task_chosen, name="task_chosen"),
|
|
]
|