-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrituals-config.html
More file actions
39 lines (37 loc) · 1.47 KB
/
rituals-config.html
File metadata and controls
39 lines (37 loc) · 1.47 KB
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
<script type="text/javascript">
RED.nodes.registerType('rituals-config', {
category: 'config',
defaults: {
email: { value: '', required: true }
},
credentials: {
password: { type: 'password' }
},
label: function() {
return this.email || 'Rituals Account';
}
});
</script>
<script type="text/html" data-template-name="rituals-config">
<div class="form-row">
<label for="node-config-input-email"><i class="fa fa-envelope"></i> Email</label>
<input type="email" id="node-config-input-email" placeholder="your@email.com">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="fa fa-lock"></i> Password</label>
<input type="password" id="node-config-input-password" placeholder="Password">
</div>
</script>
<script type="text/html" data-help-name="rituals-config">
<p>Configuration node for Rituals Perfume Genie API authentification.</p>
<h3>Configuration</h3>
<dl class="message-properties">
<dt>Email <span class="property-type">string</span></dt>
<dd>Your Rituals account email address</dd>
<dt>Password <span class="property-type">string</span></dt>
<dd>Your Rituals account password</dd>
</dl>
<h3>Details</h3>
<p>This configuration node handles authentification with the Rituals V2 API.
The authentification token is automatically refreshed when needed.</p>
</script>