mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
Allow setting custom header and page_header
Allow optional custom `header` and `page_header` settings in `class Site(BaseModel):` header need to be a string looking like `<div>CUSTOM_HEADER</div>` due to how its rendered in frontend Also, removed duplicate footer parameter in `class Site(BaseModel):` definition.
This commit is contained in:
@@ -43,7 +43,6 @@ class Site(BaseModel):
|
||||
login_logo: Optional[HttpUrl]
|
||||
login_footer: Optional[str]
|
||||
login_description: Optional[str]
|
||||
footer: Optional[str]
|
||||
locale: str
|
||||
locale_switcher: bool = False
|
||||
theme_switcher: bool = False
|
||||
@@ -55,7 +54,9 @@ class Site(BaseModel):
|
||||
menus: Optional[List[Menu]]
|
||||
# custom footer with html
|
||||
footer: Optional[str]
|
||||
|
||||
# custom header - require html beginning with a <div> due to being rendered in a <custom-component>
|
||||
header: Optional[str]
|
||||
page_header: Optional[str]
|
||||
|
||||
class Field(BaseModel):
|
||||
label: str
|
||||
|
||||
Reference in New Issue
Block a user