forked from Daniel-t/node-red-contrib-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.html
45 lines (44 loc) · 1.7 KB
/
config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script type="text/javascript">
RED.nodes.registerType('amazon config',{
category: 'config',
defaults: {
name: {value:"AWS"},
region: { value: "us-east-1", required: true },
proxyRequired: { value: false },
proxy: { value: "" }
},
credentials: {
accessKey: {type:"text"},
secretKey: {type:"password"}
},
label: function() {
return this.name;
}
});
</script>
<script type="text/x-red" data-template-name="amazon config">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-region"><i class="fa fa-wrench"></i> Region</label>
<input type="text" id="node-config-input-region">
</div>
<div class="form-row">
<label for="node-config-input-accessKey"><i class="icon-bookmark"></i> Access Id</label>
<input type="text" id="node-config-input-accessKey">
</div>
<div class="form-row">
<label for="node-config-input-secretKey"><i class="icon-bookmark"></i> Secret Key</label>
<input type="password" id="node-config-input-secretKey">
</div>
<div class="form-row">
<label for="node-config-input-proxyRequired"><i class="fa fa-wrench"></i> Proxy Required</label>
<input type="checkbox" id="node-config-input-proxyRequired">
</div>
<div class="form-row">
<label for="node-config-input-proxy"><i class="fa fa-wrench"></i> Proxy Address</label>
<input type="text" id="node-config-input-proxy">
</div>
</script>