feat: add Products form to admin
This commit is contained in:
@@ -47,7 +47,7 @@ def register_code_block_feature(features):
|
||||
|
||||
|
||||
@hooks.register("register_admin_urls")
|
||||
def register_admin_chat_dashboard_url():
|
||||
def register_admin_urls():
|
||||
return [
|
||||
path("chat/", views.admin_chat_dashboard, name="admin_chat_dashboard"),
|
||||
path(
|
||||
@@ -55,9 +55,25 @@ def register_admin_chat_dashboard_url():
|
||||
views.admin_chat,
|
||||
name="admin_chat",
|
||||
),
|
||||
path("purchase/", views.admin_purchase_dashboard, name="admin_purchase_dashboard"),
|
||||
path("purchase/add/", views.admin_purchase, name="admin_purchase_add"),
|
||||
path(
|
||||
"purchase/<int:product_id>/",
|
||||
views.admin_purchase,
|
||||
name="admin_purchase",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@hooks.register("register_admin_menu_item")
|
||||
def register_admin_chat_menu_item():
|
||||
return MenuItem("Chat", reverse("admin_chat_dashboard"), icon_name="mail")
|
||||
|
||||
|
||||
@hooks.register("register_admin_menu_item")
|
||||
def register_admin_purchase_menu_item():
|
||||
return MenuItem("Products", reverse("admin_purchase_dashboard"), icon_name="tag")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user