bugfix
This commit is contained in:
parent
b06eab1abe
commit
7c35a4a6b1
16
xls2crud.py
16
xls2crud.py
@ -49,25 +49,33 @@ def subtable2toolbar(desc):
|
|||||||
"icon":"{{entire_url('/imgs/" + st.subtable + ".svg')}}",
|
"icon":"{{entire_url('/imgs/" + st.subtable + ".svg')}}",
|
||||||
"label": st.title
|
"label": st.title
|
||||||
})
|
})
|
||||||
var bind = {
|
bind = {
|
||||||
"wid":"self",
|
"wid":"self",
|
||||||
"event":st.subtable,
|
"event":st.subtable,
|
||||||
"actiontype": "urlwidget",
|
"actiontype": "urlwidget",
|
||||||
"target":"PopupWindow",
|
"target":"PopupWindow",
|
||||||
"popup_options":{
|
"popup_options":{
|
||||||
|
"title":st.title or st.subtable,
|
||||||
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id="+st.subtable,
|
||||||
"resizable": True,
|
"resizable": True,
|
||||||
"height":"70%",
|
"height":"70%",
|
||||||
"width":"70%"
|
"width":"70%"
|
||||||
},
|
},
|
||||||
|
"params_mapping": {
|
||||||
|
"mapping":{
|
||||||
|
"id": st.field,
|
||||||
|
"referer_widget":"referer_widget"
|
||||||
|
},
|
||||||
|
"need_other":False
|
||||||
|
},
|
||||||
"options":{
|
"options":{
|
||||||
"method":"POST",
|
"method":"POST",
|
||||||
"params":{},
|
"params":{},
|
||||||
"url":st.url or "{{entire_url('../" + st.subtable + "')}}"
|
"url":st.url or "{{entire_url('../" + st.subtable + "')}}"
|
||||||
}
|
}
|
||||||
};
|
|
||||||
if (st.params_mapping){
|
|
||||||
bind.params_mapping = st.params_mapping;
|
|
||||||
}
|
}
|
||||||
|
if st.mapping:
|
||||||
|
bind['params_mapping']['mapping'].update(st.mapping)
|
||||||
binds.append(bind);
|
binds.append(bind);
|
||||||
|
|
||||||
desc.toolbar.tools = tools
|
desc.toolbar.tools = tools
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user