Features: 1) Add icons to various admin inline and model configurations for improved UI clarity;
Fixes: None; Extra: None;
This commit is contained in:
parent
76c3cd17e3
commit
a8d5969198
1 changed files with 6 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ class I18NFieldsetMixin:
|
|||
verbose_name = _("translations")
|
||||
verbose_name_plural = _("translations")
|
||||
extra = 0
|
||||
icon = "fa-solid fa-language"
|
||||
|
||||
def get_queryset(self, request):
|
||||
return (
|
||||
|
|
@ -126,6 +127,7 @@ class AttributeValueInline(TabularInline):
|
|||
verbose_name = _("attribute value")
|
||||
verbose_name_plural = _("attribute values")
|
||||
autocomplete_fields = ["attribute"]
|
||||
icon = "fa-regular fa-circle-dot"
|
||||
|
||||
|
||||
@admin.register(AttributeGroup)
|
||||
|
|
@ -173,6 +175,7 @@ class CategoryChildrenInline(admin.TabularInline):
|
|||
fk_name = "parent"
|
||||
extra = 0
|
||||
fields = ("name", "description", "is_active", "image", "markup_percent")
|
||||
icon = "fa-regular fa-circle-dot"
|
||||
|
||||
|
||||
@admin.register(Category)
|
||||
|
|
@ -254,6 +257,7 @@ class ProductImageInline(TabularInline):
|
|||
is_navtab = True
|
||||
verbose_name = _("image")
|
||||
verbose_name_plural = _("images")
|
||||
icon = "fa-regular fa-circle-dot"
|
||||
|
||||
|
||||
class StockInline(TabularInline):
|
||||
|
|
@ -262,6 +266,7 @@ class StockInline(TabularInline):
|
|||
is_navtab = True
|
||||
verbose_name = _("stock")
|
||||
verbose_name_plural = _("stocks")
|
||||
icon = "fa-regular fa-circle-dot"
|
||||
|
||||
|
||||
@admin.register(Product)
|
||||
|
|
@ -384,6 +389,7 @@ class OrderProductInline(admin.TabularInline):
|
|||
is_navtab = True
|
||||
verbose_name = _("order product")
|
||||
verbose_name_plural = _("order products")
|
||||
icon = "fa-regular fa-circle-dot"
|
||||
|
||||
def get_queryset(self, request):
|
||||
qs = super().get_queryset(request)
|
||||
|
|
|
|||
Loading…
Reference in a new issue