1
0
forked from x/ContextOS

add email

This commit is contained in:
shaoying 2019-07-02 22:23:46 +08:00
parent 42d66bbd94
commit e343f9c2e7
4 changed files with 21 additions and 1 deletions

View File

@ -4,5 +4,5 @@ var version = struct {
host string
self int
}{
"2019-07-02 20:23:38", "ZYB-20190522USI", 85,
"2019-07-02 21:24:03", "ZYB-20190522USI", 90,
}

View File

@ -206,6 +206,17 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心",
map[string]interface{}{"type": "button", "value": "查看"},
},
},
map[string]interface{}{"componet_name": "email", "componet_help": "电子邮件",
"componet_tmpl": "componet", "componet_view": "Context", "componet_init": "",
"componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "email",
"componet_args": []interface{}{}, "inputs": []interface{}{
map[string]interface{}{"label": "收件人", "type": "text", "name": "to", "view": "long"},
map[string]interface{}{"label": "主题", "type": "text", "name": "title", "view": "long"},
map[string]interface{}{"type": "button", "value": "发送", "view": "clear"},
map[string]interface{}{"type": "textarea", "name": "content", "view": "clear"},
},
"display": map[string]interface{}{"map": true},
},
map[string]interface{}{"componet_name": "baidu", "componet_help": "百度地图",
"componet_tmpl": "componet", "componet_view": "Context", "componet_init": "",
"componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "location",

View File

@ -30,6 +30,9 @@ fieldset>form.option div.cmd input.args {
background-color: black;
width:160px;
}
fieldset>form.option div.clear {
clear:both;
}
fieldset>form.option div.long input.args {
width:320px;
}

View File

@ -612,6 +612,12 @@ function Plugin(page, pane, field) {
plugin.Check(action)
}
case "textarea":
if (item.type == "textarea") {
input.type = "textarea"
item.style = "width:600px;height:300px"
}
default:
if (item.type == "text") {
item.onclick = function(event) {