This commit is contained in:
yumoqing 2025-07-12 10:08:00 +08:00
parent 0b565c5cfa
commit f6522e744b
2 changed files with 7 additions and 3 deletions

View File

@ -14,6 +14,8 @@ ui_tmpl = """
{
"widgettype":"Tree",
"options":{
"width":"100%",
"height":"100%",
{% if not notitle %}
{% if title %}
"title":"{{title}}",

View File

@ -3,6 +3,8 @@ data_browser_tmpl = """
"id":"{{tblname}}_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
{% if not notitle %}
{% if title %}
"title":"{{title}}",
@ -17,6 +19,9 @@ data_browser_tmpl = """
"toolbar":{{json.dumps(toolbar, indent=4, ensure_ascii=False)}},
{% endif %}
"css":"card",
{% if editor %}
"editor":{{json.dumps(editor, indent=4, ensure_ascii=False)}},
{% endif %}
{% if not noedit %}
"editable":{
"new_data_url":{%- raw -%}"{{entire_url('add_{%- endraw -%}{{summary[0].name}}{%- raw -%}.dspy')}}",{%- endraw %}
@ -38,9 +43,6 @@ data_browser_tmpl = """
{% if browserfields %}
"browserfields": {{json.dumps(browserfields, indent=4, ensure_ascii=Fasle)}},
{% endif %}
{% if editor %}
"editor":{{json.dumps(editexclouded, indent=4, ensure_ascii=False)}},
{% endif %}
{% if editexclouded %}
"editexclouded":{{json.dumps(editexclouded, indent=4, ensure_ascii=False)}},
{% endif %}