bugfix
This commit is contained in:
parent
0b565c5cfa
commit
f6522e744b
@ -14,6 +14,8 @@ ui_tmpl = """
|
|||||||
{
|
{
|
||||||
"widgettype":"Tree",
|
"widgettype":"Tree",
|
||||||
"options":{
|
"options":{
|
||||||
|
"width":"100%",
|
||||||
|
"height":"100%",
|
||||||
{% if not notitle %}
|
{% if not notitle %}
|
||||||
{% if title %}
|
{% if title %}
|
||||||
"title":"{{title}}",
|
"title":"{{title}}",
|
||||||
|
8
tmpls.py
8
tmpls.py
@ -3,6 +3,8 @@ data_browser_tmpl = """
|
|||||||
"id":"{{tblname}}_tbl",
|
"id":"{{tblname}}_tbl",
|
||||||
"widgettype":"Tabular",
|
"widgettype":"Tabular",
|
||||||
"options":{
|
"options":{
|
||||||
|
"width":"100%",
|
||||||
|
"height":"100%",
|
||||||
{% if not notitle %}
|
{% if not notitle %}
|
||||||
{% if title %}
|
{% if title %}
|
||||||
"title":"{{title}}",
|
"title":"{{title}}",
|
||||||
@ -17,6 +19,9 @@ data_browser_tmpl = """
|
|||||||
"toolbar":{{json.dumps(toolbar, indent=4, ensure_ascii=False)}},
|
"toolbar":{{json.dumps(toolbar, indent=4, ensure_ascii=False)}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"css":"card",
|
"css":"card",
|
||||||
|
{% if editor %}
|
||||||
|
"editor":{{json.dumps(editor, indent=4, ensure_ascii=False)}},
|
||||||
|
{% endif %}
|
||||||
{% if not noedit %}
|
{% if not noedit %}
|
||||||
"editable":{
|
"editable":{
|
||||||
"new_data_url":{%- raw -%}"{{entire_url('add_{%- endraw -%}{{summary[0].name}}{%- raw -%}.dspy')}}",{%- endraw %}
|
"new_data_url":{%- raw -%}"{{entire_url('add_{%- endraw -%}{{summary[0].name}}{%- raw -%}.dspy')}}",{%- endraw %}
|
||||||
@ -38,9 +43,6 @@ data_browser_tmpl = """
|
|||||||
{% if browserfields %}
|
{% if browserfields %}
|
||||||
"browserfields": {{json.dumps(browserfields, indent=4, ensure_ascii=Fasle)}},
|
"browserfields": {{json.dumps(browserfields, indent=4, ensure_ascii=Fasle)}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if editor %}
|
|
||||||
"editor":{{json.dumps(editexclouded, indent=4, ensure_ascii=False)}},
|
|
||||||
{% endif %}
|
|
||||||
{% if editexclouded %}
|
{% if editexclouded %}
|
||||||
"editexclouded":{{json.dumps(editexclouded, indent=4, ensure_ascii=False)}},
|
"editexclouded":{{json.dumps(editexclouded, indent=4, ensure_ascii=False)}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user