-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwnsm-config.html
46 lines (45 loc) · 1.27 KB
/
wnsm-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
46
<script type="text/javascript">
RED.nodes.registerType('wnsm-config', {
category: 'config',
defaults: {
name: {
required: true
},
},
credentials: {
clientId: {
type: 'text',
required: true
},
clientSecret: {
type: 'text',
required: true
},
apiKey: {
type: 'text',
required: true
},
},
label: function() {
return this.name
}
})
</script>
<script type="text/html" data-template-name="wnsm-config">
<div class="form-row">
<label for="node-config-input-clientId"><i class="fa fa-id-card-o"></i> Client ID</label>
<input type="text" id="node-config-input-clientId">
</div>
<div class="form-row">
<label for="node-config-input-clientSecret"><i class="fa fa-key"></i> Client secret</label>
<input type="text" id="node-config-input-clientSecret">
</div>
<div class="form-row">
<label for="node-config-input-apiKey"><i class="fa fa-key"></i> API key</label>
<input type="text" id="node-config-input-apiKey">
</div>
<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" placeholder="Symbolic name for settings">
</div>
</script>