Implement adding/editing hooks

This commit is contained in:
2022-10-15 18:45:25 +01:00
parent 7118af5d3c
commit 8369f44bd4
6 changed files with 119 additions and 30 deletions

View File

@@ -42,6 +42,12 @@ 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.AddHook.as_view(), name="add-hook"),
path("hooks/modal/add/<str:name>/", hooks.AddHook.as_view(), name="add-hook"),
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/page/del/<str:hook_id>/", hooks.HookAction.as_view(), name="hook_action"
),
path(
"hooks/page/edit/<str:hook_id>/", hooks.HookAction.as_view(), name="hook_action"
),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)