68 lines
2.0 KiB
Python
68 lines
2.0 KiB
Python
from django.urls import reverse_lazy
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
PAGES = [
|
|
{
|
|
"seperator": False,
|
|
"items": [
|
|
{
|
|
"title": _("Bosh sahifa"),
|
|
"icon": "home",
|
|
"link": reverse_lazy("admin:index"),
|
|
}
|
|
],
|
|
},
|
|
{
|
|
"title": _("Do'kon boshqaruvi"),
|
|
"separator": True,
|
|
"items": [
|
|
{
|
|
"title": _("Filiallar"),
|
|
"icon": "store",
|
|
"link": reverse_lazy("admin:api_filialmodel_changelist"),
|
|
},
|
|
{
|
|
"title": _("Turlar"),
|
|
"icon": "label",
|
|
"link": reverse_lazy("admin:api_typemodel_changelist"),
|
|
},
|
|
{
|
|
"title": _("Kategoriyalar"),
|
|
"icon": "category",
|
|
"link": reverse_lazy("admin:api_categorymodel_changelist"),
|
|
},
|
|
{
|
|
"title": _("Subkategoriyalar"),
|
|
"icon": "layers",
|
|
"link": reverse_lazy("admin:api_subcategorymodel_changelist"),
|
|
},
|
|
{
|
|
"title": _("Mahsulotlar"),
|
|
"icon": "shopping_basket",
|
|
"link": reverse_lazy("admin:api_productsmodel_changelist"),
|
|
},
|
|
{
|
|
"title": _("Mahsulot variantlari"),
|
|
"icon": "inventory_2",
|
|
"link": reverse_lazy("admin:api_subproductmodel_changelist"),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"title": _("Foydalanuvchilar"),
|
|
"separator": True,
|
|
"items": [
|
|
{
|
|
"title": _("Foydalanuvchilar"),
|
|
"icon": "person",
|
|
"link": reverse_lazy("admin:accounts_user_changelist"),
|
|
},
|
|
{
|
|
"title": _("Guruhlar"),
|
|
"icon": "group",
|
|
"link": reverse_lazy("admin:auth_group_changelist"),
|
|
},
|
|
],
|
|
},
|
|
]
|