Make hooks/callbacks inherit type

This commit is contained in:
2022-10-16 14:14:53 +01:00
parent 3af63c5ef6
commit 97d12b0fab
14 changed files with 102 additions and 64 deletions

View File

@@ -47,13 +47,19 @@ urlpatterns = [
path("accounts/", include("django.contrib.auth.urls")),
path("accounts/signup/", base.Signup.as_view(), name="signup"),
path("hooks/<str:type>/", hooks.Hooks.as_view(), name="hooks"),
path("hooks/modal/add/", hooks.HookAction.as_view(), name="hook_action"),
path("hooks/modal/add/<str:name>/", hooks.HookAction.as_view(), name="hook_action"),
path("hooks/<str:type>/add/", hooks.HookAction.as_view(), name="hook_action"),
path(
"hooks/page/del/<str:hook_id>/", hooks.HookAction.as_view(), name="hook_action"
"hooks/<str:type>/add/<str:name>/",
hooks.HookAction.as_view(),
name="hook_action",
),
path(
"hooks/modal/edit/<str:hook_id>/",
"hooks/<str:type>/del/<str:hook_id>/",
hooks.HookAction.as_view(),
name="hook_action",
),
path(
"hooks/<str:type>/edit/<str:hook_id>/",
hooks.HookAction.as_view(),
name="hook_action",
),