0.0.21 how dev block

This commit is contained in:
SDE
2023-11-28 15:01:17 +03:00
parent 426c001dc9
commit 78181b075d
10 changed files with 89 additions and 18 deletions

View File

@@ -24,7 +24,11 @@ class Admin_Inline_WidgetForBlock(SuperInlineModelAdmin, Admin_Trans_BaseIconSta
(None, {
'classes': [],
'fields': [
('title', 'description', 'picture'),
(
# 'title',
'name', 'description', 'text',
'picture'
),
('bg_color', ),
('but_title', 'but_color', 'but_icon'),
('url', 'order'),
@@ -47,7 +51,9 @@ class Admin_StackedInline_Block(Admin_Trans_GenericBaseIconStackedInline, SuperI
(None, {
'classes': [],
'fields': [
('block_type', 'title', 'description', 'picture'),
('block_type',
# 'title',
'name', 'description', 'picture'),
('bg_color', 'bg_image'),
('but_title', 'but_color', 'but_icon'),
('url',),
@@ -71,7 +77,8 @@ class Admin_StaticPage(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
'classes': ['wide'],
'fields': ('name',
'url',
'title', 'description', 'text',
# 'title',
'description', 'text',
'picture',
'order',
)
@@ -87,7 +94,8 @@ class Admin_StaticPage(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
list_display = [
'id',
'name', 'url', 'title',
'name', 'url',
# 'title',
'order', 'modifiedDT', 'createDT'
]