-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoptions.html
189 lines (173 loc) · 4.84 KB
/
options.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<!--
* Copyright (c) 2011 Jack Senechal, 2013 Aleksandar Cvijovic, 2018 Robin Mulloy. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
-->
<html>
<head>
<title>FusionPBX Select to Call - Options</title>
<style>
body {
font-family:helvetica, arial, sans-serif;
font-size:80%;
margin:10px;
}
#header {
padding-bottom:1.5em;
padding-top:1.5em;
}
#header h1 {
font-size: 156%;
display:inline;
padding-bottom:43px;
padding-left:75px;
padding-top:40px;
background:url(images/icon128.png) no-repeat;
background-size:67px;
background-position:1px 18px;
}
#footer {
margin-left: 24px;
margin-top: 12px;
}
.settings-content {
margin: 6px 6px 0 6px;
padding: 10px 10px 10px 10px;
color: #333;
border: 1px solid #dedede;
-webkit-border-radius: 5px 5px;
}
.settings-table {
width: 100%;
font-size: 1em;
}
.settings-table .left,
.settings-table .right {
vertical-align: top;
border-bottom: 0 dotted #aaa;
}
.settings-table th {
text-align: right;
width: 1%;
white-space: nowrap;
padding: 12px 24px 12px 12px;
}
.settings-table td {
width: 99%;
white-space: nowrap;
padding: 12px;
}
.settings-table textarea {
width: 100%;
height: 5em;
}
.settings-tip {
color: #444;
font-size: 11px;
}
</style>
<script type="text/javascript" src="options.js"></script>
</head>
<body>
<div id="header">
<h1>FusionPBX Select to Call Extension Options</h1>
<div style="font-size:9px;padding-left:75px">Copyright (c) 2018 Robin Mulloy. All rights reserved.</div>
</div>
<form name="settings">
<div class="settings-content">
How this component works..<br/>
<div style="padding-left:10px">
Select (highlight) a phone number and right click.<br/>
Select the menu option "Dial..." shown on the context menu.<br/>
The phone number is passed to "Your Extension" and your phone rings.<br/>
When you answer that call, the system then dials the selected number.
</div>
</div>
<div class="settings-content">
<table class="settings-table" id="settings-voicemail-content">
<tr>
<th class="left">PBX Domain</th>
<td class="right">
<input type="text" id="domain" placeholder="https://pbx.mydomain.com" />
</td>
</tr>
<tr>
<th class="left">Your PBX Username</th>
<td class="right">
<input type="text" id="username"/>
</td>
</tr>
<tr>
<th class="left">Your PBX Password</th>
<td class="right">
<input type="password" id="password"/>
</td>
</tr>
<tr>
<th class="left">Your Extension</th>
<td class="right">
<input type="text" id="src"/>
<small>where to send the clicked number</small>
</td>
</tr>
<tr>
<th class="left">Your Caller ID Name</th>
<td class="right">
<input type="text" id="dest_cid_name"/>
</td>
</tr>
<tr>
<th class="left">Your Caller ID Number</th>
<td class="right">
<input type="text" id="dest_cid_number"/>
</td>
</tr>
<tr>
<th class="left">Device auto-answer</th>
<td class="right">
<select id="auto_answer">
<option value="false">false</option>
<option value="true">true</option>
</select>
<label for="rec">Select "true" to auto-answer when initializing call.</label>
</td>
</tr>
<tr>
<th class="left">Record</th>
<td class="right">
<select id="rec">
<option value="false">false</option>
<option value="true">true</option>
</select>
<label for="rec">Select "true" to record calls.</label>
</td>
</tr>
<tr>
<th class="left">Ringback</th>
<td class="right">
<select id="ringback">
<option value="us-ring">us-ring</option>
<option value="uk-ring">uk-ring</option>
<option value="fr-ring">fr-ring</option>
<option value="rs-ring">rs-ring</option>
<option value="music">music</option>
</select>
<label for="ringback">Select the ringback sound.</label>
</td>
</tr>
<tr>
<th class="left">Clear Extension Data</th>
<td class="right">
<button onclick="clearData()">Clear Data and Reset To Default Values</button>
<span class="settings-tip">Try this if the extension isn't updating data correctly.</span>
</td>
</tr>
</table>
</div>
</form>
<div id="footer">
<button id="save-button" style="font-weight:bold">Save</button>
<span id="status" style="margin-left: 10px; color: #0e5ecf; font-weight:bold;"></span>
</div>
</body>
</html>