forked from pattex007/node-red-contrib-fhem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfhem-instance.html
44 lines (42 loc) · 1.59 KB
/
fhem-instance.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
<script type="text/javascript">
RED.nodes.registerType('fhem-instance', {
category: 'config',
defaults: {
name: { value: '' },
server: { value: '', required: true },
port: { value: '', required: true },
password: { value: '', required: false },
additionalReadings: { value: '', required: false }
},
/*
credentials: {
password: {type:"password"}
},
*/
label: function () {
return this.name || this.deviceName;
}
});
</script>
<script type="text/html" data-template-name="fhem-instance">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-pencil"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-server"><i class="fa fa-cog"></i> Server</label>
<input id="node-config-input-server">
</div>
<div class="form-row">
<label for="node-config-input-port"><i class="fa fa-cog"></i> Port</label>
<input id="node-config-input-port">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="fa fa-tag"></i> Password</label>
<input disabled type="password" id="node-config-input-password">
</div>
<div class="form-row">
<label for="node-config-input-additionalReadings"><i class="fa fa-tag"></i> Additional Readings</label>
<input id="node-config-input-additionalReadings">
</div>
</script>