forked from bashGroup/node-red-contrib-fritz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calllist.html
123 lines (120 loc) · 3.53 KB
/
calllist.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<script type="text/javascript">
RED.nodes.registerType("fritzbox-calllist", {
category: "fritzbox",
paletteLabel: "FRITZ!Box Calllist",
color: "#2E90DD",
defaults: {
device: {
type: "fritzbox-config",
required: true
},
name: {
value: "",
required: false
},
action: {
value: "GetCallList"
},
listurl: {
value: "NewCallListURL"
},
max: {
value: "",
required: false,
validate: function (v) {
return (RED.validators.number()(v) || v === "");
}
},
maxdays: {
value: "",
required: false,
validate: function (v) {
return (RED.validators.number()(v) || v === "");
}
}
},
inputs: 1,
outputs: 1,
icon: "fritz.png",
label: function () {
return this.name ? this.name : "FRITZ!Box Calllist";
}
});
</script>
<script type="text/x-red" data-template-name="fritzbox-calllist">
<div class="form-row">
<label for="node-input-device"><i class="fa fa-server"></i>Device</label>
<input type="text" id="node-input-device">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
<input type="text" id="node-input-name" />
</div>
<div class="form-row">
<label for="node-input-max"><i class="icon-bookmark"></i>Max results</label>
<input type="text" id="node-input-max" />
</div>
<div class="form-row">
<label for="node-input-maxdays"><i class="icon-bookmark"></i>Max days</label>
<input type="text" id="node-input-maxdays" />
</div>
<div class="form-row">
<input type="hidden" id="node-input-action" />
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType("fritzbox-phonebook", {
category: "fritzbox",
paletteLabel: "FRITZ!Box Phonebook",
color: "#2E90DD",
defaults: {
device: {
type: "fritzbox-config",
required: true
},
name: {
value: "",
required: false
},
id: {
value: "0",
required: false,
validate: function (v) {
return (RED.validators.number()(v) || v === "");
}
},
action: {
value: "GetPhonebook"
},
listurl: {
value: "NewPhonebookURL"
}
},
inputs: 1,
outputs: 1,
icon: "fritz.png",
label: function () {
return this.name ? this.name : "FRITZ!Box Phonebook";
}
});
</script>
<script type="text/x-red" data-template-name="fritzbox-phonebook">
<div class="form-row">
<label for="node-input-device"><i class="fa fa-server"></i>Device</label>
<input type="text" id="node-input-device">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
<input type="text" id="node-input-name" />
</div>
<div class="form-row">
<label for="node-input-id"><i class="fa fa-tag"></i>Phonebook Id</label>
<input type="text" id="node-input-id" />
</div>
<div class="form-row">
<input type="hidden" id="node-input-action" />
</div>
<div class="form-tips">
Use the msg.payload to pass the arguments in the form of. Required arguments are: {"NewPhonebookID":"0"} with an ID number, in most cases 0.
</div>
</script>