forked from nullibrew/node-red-contrib-nulli-neo4j
-
Notifications
You must be signed in to change notification settings - Fork 4
/
neo4j_server.html
70 lines (69 loc) · 2.22 KB
/
neo4j_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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<script type="text/javascript">
RED.nodes.registerType('neo4j-bolt-server', {
category: 'config',
defaults: {
name: { value: '' },
url: { value: 'bolt://', required: true },
user: { value: '' },
pass: { value: '' }
},
label: function () {
return this.url;
},
oneditprepare: function () {
var tabs = RED.tabs.create({
id: "neo4j-bolt-server-tabs",
onchange: function (tab) {
$("#neo4j-bolt-server-tabs-content").children().hide();
$("#" + tab.id).show();
}
});
tabs.addTab({
id: "neo4j-bolt-server-tab-connection",
label: "Connection"
});
tabs.addTab({
id: "neo4j-bolt-server-tab-security",
label: "Security"
});
setTimeout(function () { tabs.resize(); }, 0);
}
});
</script>
<script type="text/x-red" data-template-name="neo4j-bolt-server">
<div class="form-row">
<label for="node-config-input-name">
<i class="fa fa-tag"></i> <span>Name</span>
</label>
<input type="text" id="node-config-input-name" placeholder="Name">
</div>
<div class="form-row">
<ul id="neo4j-bolt-server-tabs"
style="background: #fff; min-width: 600px; margin-bottom: 20px;">
</ul>
</div>
<div id="neo4j-bolt-server-tabs-content" style="min-height: 170px;">
<div id="neo4j-bolt-server-tab-connection" style="display:none">
<div class="form-row">
<label for="node-config-input-url">
<i class="icon-bookmark"></i> Url
</label>
<input type="text" id="node-config-input-url" placeholder="bolt://">
</div>
</div>
<div id="neo4j-bolt-server-tab-security" style="display:none">
<div class="form-row">
<label for="node-config-input-user">
<i class="icon-tag"></i> user
</label>
<input type="text" id="node-config-input-user" placeholder="neo4j">
</div>
<div class="form-row">
<label for="node-config-input-pass">
<i class="icon-tag"></i> pass
</label>
<input type="password" id="node-config-input-pass" placeholder="test1234">
</div>
</div>
</div>
</script>