forked from x/ContextOS
add email
This commit is contained in:
parent
42d66bbd94
commit
e343f9c2e7
@ -4,5 +4,5 @@ var version = struct {
|
|||||||
host string
|
host string
|
||||||
self int
|
self int
|
||||||
}{
|
}{
|
||||||
"2019-07-02 20:23:38", "ZYB-20190522USI", 85,
|
"2019-07-02 21:24:03", "ZYB-20190522USI", 90,
|
||||||
}
|
}
|
||||||
|
@ -206,6 +206,17 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心",
|
|||||||
map[string]interface{}{"type": "button", "value": "查看"},
|
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": "百度地图",
|
map[string]interface{}{"componet_name": "baidu", "componet_help": "百度地图",
|
||||||
"componet_tmpl": "componet", "componet_view": "Context", "componet_init": "",
|
"componet_tmpl": "componet", "componet_view": "Context", "componet_init": "",
|
||||||
"componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "location",
|
"componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "location",
|
||||||
|
@ -30,6 +30,9 @@ fieldset>form.option div.cmd input.args {
|
|||||||
background-color: black;
|
background-color: black;
|
||||||
width:160px;
|
width:160px;
|
||||||
}
|
}
|
||||||
|
fieldset>form.option div.clear {
|
||||||
|
clear:both;
|
||||||
|
}
|
||||||
fieldset>form.option div.long input.args {
|
fieldset>form.option div.long input.args {
|
||||||
width:320px;
|
width:320px;
|
||||||
}
|
}
|
||||||
|
@ -612,6 +612,12 @@ function Plugin(page, pane, field) {
|
|||||||
plugin.Check(action)
|
plugin.Check(action)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case "textarea":
|
||||||
|
if (item.type == "textarea") {
|
||||||
|
input.type = "textarea"
|
||||||
|
item.style = "width:600px;height:300px"
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (item.type == "text") {
|
if (item.type == "text") {
|
||||||
item.onclick = function(event) {
|
item.onclick = function(event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user