forked from lucianocosta/node-red-contrib-rocketchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rocketchat-server.html
33 lines (32 loc) · 1.45 KB
/
rocketchat-server.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
<script type="text/x-red" data-template-name="rocketchat-server">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> <span data-i18n="rocketchat-server.label.name"></label>
<input type="text" id="node-config-input-name" data-i18n="[placeholder]rocketchat-server.label.name">
</div>
<div class="form-row">
<label for="node-config-input-host"><i class="fa fa-tasks"></i> <span data-i18n="rocketchat-server.label.host"></label>
<input type="text" id="node-config-input-host" data-i18n="[placeholder]rocketchat-server.label.host">
</div>
<div class="form-row">
<label for="node-config-input-user"><i class="fa fa-tasks"></i> <span data-i18n="rocketchat-server.label.user"></label>
<input type="text" id="node-config-input-user" data-i18n="[placeholder]rocketchat-server.label.user">
</div>
<div class="form-row">
<label for="node-config-input-token"><i class="fa fa-tasks"></i> <span data-i18n="rocketchat-server.label.token"></label>
<input type="text" id="node-config-input-token" data-i18n="[placeholder]rocketchat-server.label.token">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('rocketchat-server', {
category: 'config',
defaults: {
name: { value: '', required: true },
host: { value: '', required: true },
user: { value: '', required: true },
token: { value: '', required: true }
},
label: function() {
return this.name || this.user + '@' + this.host;
}
});
</script>