Fix Jinja2 template errors: use 'item' for List components and correct form field access
This commit is contained in:
parent
e846804ec8
commit
bc3e94b64a
@ -94,7 +94,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "{{data.name}}",
|
"text": "{{item.name}}",
|
||||||
"fontSize": "18px",
|
"fontSize": "18px",
|
||||||
"fontWeight": "600",
|
"fontWeight": "600",
|
||||||
"color": "#F8FAFC"
|
"color": "#F8FAFC"
|
||||||
@ -106,7 +106,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Badge",
|
"widgettype": "Badge",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "{{data.status}}",
|
"text": "{{item.status}}",
|
||||||
"bgcolor": "{{ '#22C55E' if data.status == 'Connected' else '#EF4444' }}",
|
"bgcolor": "{{ '#22C55E' if data.status == 'Connected' else '#EF4444' }}",
|
||||||
"color": "#FFFFFF",
|
"color": "#FFFFFF",
|
||||||
"borderRadius": "12px",
|
"borderRadius": "12px",
|
||||||
|
|||||||
@ -94,7 +94,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "{{data.name}}",
|
"text": "{{item.name}}",
|
||||||
"fontSize": "16px",
|
"fontSize": "16px",
|
||||||
"fontWeight": "600",
|
"fontWeight": "600",
|
||||||
"color": "#F8FAFC"
|
"color": "#F8FAFC"
|
||||||
@ -106,7 +106,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "{{data.last_active}}",
|
"text": "{{item.last_active}}",
|
||||||
"fontSize": "12px",
|
"fontSize": "12px",
|
||||||
"color": "#94A3B8"
|
"color": "#94A3B8"
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "{{data.model}}",
|
"text": "{{item.model}}",
|
||||||
"fontSize": "14px",
|
"fontSize": "14px",
|
||||||
"color": "#CBD5E1",
|
"color": "#CBD5E1",
|
||||||
"marginTop": "4px"
|
"marginTop": "4px"
|
||||||
@ -130,7 +130,7 @@
|
|||||||
"actiontype": "urlwidget",
|
"actiontype": "urlwidget",
|
||||||
"target": "app.main-content",
|
"target": "app.main-content",
|
||||||
"options": {
|
"options": {
|
||||||
"url": "{{entire_url('session_detail.ui?id={{data.id}}')}}"
|
"url": "{{entire_url('session_detail.ui?id={{item.id}}')}}"
|
||||||
},
|
},
|
||||||
"mode": "replace"
|
"mode": "replace"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -107,9 +107,9 @@
|
|||||||
"target": "self",
|
"target": "self",
|
||||||
"rfname": "save_general_settings",
|
"rfname": "save_general_settings",
|
||||||
"params": {
|
"params": {
|
||||||
"default_model": "{{form.default-model}}",
|
"default_model": "{{default-model.value}}",
|
||||||
"session_timeout": "{{form.session-timeout}}",
|
"session_timeout": "{{session-timeout.value}}",
|
||||||
"auto_save": "{{form.auto-save}}"
|
"auto_save": "{{auto-save.checked}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -320,8 +320,8 @@
|
|||||||
"target": "self",
|
"target": "self",
|
||||||
"rfname": "save_security_settings",
|
"rfname": "save_security_settings",
|
||||||
"params": {
|
"params": {
|
||||||
"require_auth": "{{form.require-auth}}",
|
"require_auth": "{{require-auth.checked}}",
|
||||||
"encrypt_storage": "{{form.encrypt-storage}}"
|
"encrypt_storage": "{{encrypt-storage.checked}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -381,7 +381,7 @@
|
|||||||
"target": "self",
|
"target": "self",
|
||||||
"rfname": "save_appearance_settings",
|
"rfname": "save_appearance_settings",
|
||||||
"params": {
|
"params": {
|
||||||
"theme": "{{form.theme-select}}"
|
"theme": "{{theme-select.value}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user