feat(itim): Add attribute page_layout to Service model

ref:  #248 #345 #346
This commit is contained in:
2024-10-13 18:21:16 +09:30
parent c205a75ce0
commit 8058369276

View File

@ -247,6 +247,76 @@ class Service(TenancyObject):
modified = AutoLastModifiedField()
page_layout: dict = [
{
"name": "Details",
"slug": "details",
"sections": [
{
"layout": "double",
"left": [
'organization',
'name'
'config_key_variable',
'template',
'is_template',
],
"right": [
'model_notes',
'created',
'modified',
]
},
{
"layout": "single",
"fields": [
'config',
]
},
{
"layout": "single",
"fields": [
'dependent_service'
]
},
{
"layout": "single",
"name": "Ports",
"fields": [
'port'
],
}
]
},
{
"name": "Rendered Config",
"slug": "config_management",
"sections": [
{
"layout": "single",
"fields": [
"rendered_config",
]
}
]
},
{
"name": "Tickets",
"slug": "ticket",
"sections": [
{
"layout": "table",
"field": "tickets",
}
]
},
{
"name": "Notes",
"slug": "notes",
"sections": []
},
]
table_fields: list = [
"nbsp",
"name",