mirror of https://github.com/sipwise/ngcp-csc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.6 KiB
58 lines
1.6 KiB
Ext.define('NgcpCsc.view.common.composer.Phone', {
|
|
extend: 'Ext.panel.Panel',
|
|
|
|
alias: 'widget.phone-composer',
|
|
|
|
bind: {
|
|
hidden: '{phoneComposerHidden}'
|
|
},
|
|
items: [{
|
|
layout: 'hbox',
|
|
margin: 20,
|
|
items: [{
|
|
xtype: 'textfield',
|
|
emptyText: 'Allowed digits are 0-9, +, # and *.',
|
|
hideTrigger: true,
|
|
width: '80%',
|
|
bind: '{numberToCall}',
|
|
reference: 'callNumberInput'
|
|
}, {
|
|
xtype: 'button',
|
|
enableToggle: true,
|
|
iconCls: Ngcp.csc.icons.fax,
|
|
width: '20%',
|
|
handler: 'showPhoneComposer'
|
|
}]
|
|
}, {
|
|
xtype: 'phonekeys',
|
|
bind: {
|
|
hidden: '{phoneKeyboardHidden}'
|
|
}
|
|
}, {
|
|
xtype: 'container',
|
|
layout: 'center',
|
|
items: [{
|
|
xtype: 'container',
|
|
items: [{
|
|
xtype: 'button',
|
|
text: Ngcp.csc.locales.rtc.sendAudio[localStorage.getItem('languageSelected')],
|
|
iconCls: Ngcp.csc.icons.microphone,
|
|
margin: '0 10 0 0',
|
|
listeners: {
|
|
click: 'sendAudio'
|
|
}
|
|
}, {
|
|
xtype: 'button',
|
|
text: Ngcp.csc.locales.rtc.sendVideo[localStorage.getItem('languageSelected')],
|
|
iconCls: Ngcp.csc.icons.video,
|
|
listeners: {
|
|
click: 'sendVideo'
|
|
}
|
|
}]
|
|
}]
|
|
}, {
|
|
hidden: true,
|
|
html: '<audio preload="auto" src="' + Ext.manifest.resources.path + '/audio/ring.mp3" loop id="ring"></audio>'
|
|
}]
|
|
})
|