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