-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfd-config.html
32 lines (32 loc) · 1.2 KB
/
fd-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
<script type="text/javascript">
RED.nodes.registerType('fd-config', {
category: 'config',
defaults: {
subdomain: {value: "", required:true},
key: {value: "", required:true},
defaultuser: {value: "", required:true, type: "integer"},
defaultgroup: {value: "", required:true, type: "integer"}
},
label: function () {
return this.subdomain + ".freshdesk.com";
}
});
</script>
<script type="text/x-red" data-template-name="fd-config">
<div class="form-row">
<label for="node-config-input-subdomain"><i class="icon-globe"></i> Subdomain</label>
<input type="text" id="node-config-input-subdomain">
</div>
<div class="form-row">
<label for="node-config-input-key"><i class="icon-pencil"></i> API key</label>
<input type="text" id="node-config-input-key">
</div>
<div class="form-row">
<label for="node-config-input-defaultuser"><i class="icon-user"></i> Default user ID</label>
<input type="text" id="node-config-input-defaultuser">
</div>
<div class="form-row">
<label for="node-config-input-defaultgroup"><i class="icon-th-large"></i> Default group ID</label>
<input type="text" id="node-config-input-defaultgroup">
</div>
</script>