fix: add POST method to register form submit binding
This commit is contained in:
parent
15079c356b
commit
fb5a24c240
@ -1,80 +1,80 @@
|
|||||||
{
|
{
|
||||||
"widgettype":"PopupWindow",
|
"widgettype": "PopupWindow",
|
||||||
"options":{
|
"options": {
|
||||||
"cwidth":22,
|
"cwidth": 22,
|
||||||
"height":"75%",
|
"height": "75%",
|
||||||
"archor":"cc",
|
"archor": "cc",
|
||||||
"auto_open":true
|
"auto_open": true
|
||||||
},
|
},
|
||||||
"subwidgets":[
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype":"Form",
|
"widgettype": "Form",
|
||||||
"options":{
|
"options": {
|
||||||
"title":"user register",
|
"title": "user register",
|
||||||
"description":"base info we need is username, password and a cell phone number",
|
"description": "base info we need is username, password and a cell phone number",
|
||||||
|
"fields": [
|
||||||
"fields":[
|
{
|
||||||
{
|
"name": "username",
|
||||||
"name": "username",
|
"title": "用户名",
|
||||||
"title": "\u7528\u6237\u540d",
|
"type": "str",
|
||||||
"type": "str",
|
"length": 255,
|
||||||
"length": 255,
|
"uitype": "str",
|
||||||
"uitype": "str",
|
"datatype": "str",
|
||||||
"datatype": "str",
|
"required": true,
|
||||||
"required":true,
|
"label": "用户名"
|
||||||
"label": "\u7528\u6237\u540d"
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "password",
|
||||||
"name": "password",
|
"type": "str",
|
||||||
"type": "str",
|
"length": 255,
|
||||||
"length": 255,
|
"uitype": "password",
|
||||||
"uitype": "password",
|
"datatype": "str",
|
||||||
"datatype": "str",
|
"required": true,
|
||||||
"required":true,
|
"label": "密码"
|
||||||
"label": "\u5bc6\u7801"
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "cfm_password",
|
||||||
"name": "cfm_password",
|
"type": "str",
|
||||||
"type": "str",
|
"length": 255,
|
||||||
"length": 255,
|
"uitype": "password",
|
||||||
"uitype": "password",
|
"datatype": "str",
|
||||||
"datatype": "str",
|
"required": true,
|
||||||
"required":true,
|
"label": "密码"
|
||||||
"label": "\u5bc6\u7801"
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "email",
|
||||||
"name": "email",
|
"title": "邮件地址",
|
||||||
"title": "\u90ae\u4ef6\u5730\u5740",
|
"type": "str",
|
||||||
"type": "str",
|
"length": 255,
|
||||||
"length": 255,
|
"uitype": "str",
|
||||||
"uitype": "str",
|
"datatype": "str",
|
||||||
"datatype": "str",
|
"required": true,
|
||||||
"required":true,
|
"label": "邮件地址"
|
||||||
"label": "\u90ae\u4ef6\u5730\u5740"
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "mobile",
|
||||||
"name": "mobile",
|
"title": "手机",
|
||||||
"title": "\u624b\u673a",
|
"type": "str",
|
||||||
"type": "str",
|
"length": 255,
|
||||||
"length": 255,
|
"uitype": "str",
|
||||||
"uitype": "str",
|
"datatype": "str",
|
||||||
"datatype": "str",
|
"required": true,
|
||||||
"required":true,
|
"label": "手机"
|
||||||
"label": "\u624b\u673a"
|
}
|
||||||
}
|
]
|
||||||
]
|
},
|
||||||
},
|
"binds": [
|
||||||
"binds":[
|
{
|
||||||
{
|
"wid": "self",
|
||||||
"wid":"self",
|
"event": "submit",
|
||||||
"event":"submit",
|
"actiontype": "urlwidget",
|
||||||
"actiontype":"urlwidget",
|
"target": "self",
|
||||||
"target":"self",
|
"options": {
|
||||||
"options":{
|
"method": "POST",
|
||||||
"url":"{{entire_url('register.dspy')}}"
|
"url": "{{entire_url('register.dspy')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user