TT#9859 Ngcp-csc remove fax send and pbxext module

Remove pbx extensions and fax send module. Change auto attendant
module to sub module of pbx config submodule (awaiting specs from
Andreas, so leave this module as is for now). Correct naming mistake
for pbxconfig folder (is named pbfconfig), and remove redundant scss
and locales.

Leave Ngcp.csc.locales.faxsend locales object for now, as it can be
reused for the upcoming "Action/calls sidebar" module.

Change-Id: Id951a943dedae24b1719953ba62f38f0b6ae69c0
changes/40/11040/3
Robert Axelsen 9 years ago
parent 92459c135a
commit 59ff103950

@ -1176,98 +1176,6 @@ Ext.define('Ngcp.csc.locales', {
sp: 'Logo'
}
},
autoattendant: {
title: {
en: 'Your auto attendants.',
it: 'Your auto attendants.',
de: 'Your auto attendants.',
fr: 'Your auto attendants.',
sp: 'Your auto attendants.'
},
subtitle: {
en: 'AUTO ATTENDANT',
it: 'AUTO ATTENDANT',
de: 'AUTO ATTENDANT',
fr: 'AUTO ATTENDANT',
sp: 'AUTO ATTENDANT'
},
user_label: {
en: 'Auto attendants for ',
it: 'Auto attendants for ',
de: 'Auto attendants for ',
fr: 'Auto attendants for ',
sp: 'Auto attendants for '
}
},
deviceprovisioning: {
title: {
en: 'Your device provisionings.',
it: 'Your device provisionings.',
de: 'Your device provisionings.',
fr: 'Your device provisionings.',
sp: 'Your device provisionings.'
},
subtitle: {
en: 'DEVICE PROVISIONING',
it: 'DEVICE PROVISIONING',
de: 'DEVICE PROVISIONING',
fr: 'DEVICE PROVISIONING',
sp: 'DEVICE PROVISIONING'
},
user_label: {
en: 'Device provisionings for ',
it: 'Device provisionings for ',
de: 'Device provisionings for ',
fr: 'Device provisionings for ',
sp: 'Device provisionings for '
}
},
huntgroup: {
title: {
en: 'Your hunt groups.',
it: 'Your hunt groups.',
de: 'Your hunt groups.',
fr: 'Your hunt groups.',
sp: 'Your hunt groups.'
},
subtitle: {
en: 'HUNT GROUP',
it: 'HUNT GROUP',
de: 'HUNT GROUP',
fr: 'HUNT GROUP',
sp: 'HUNT GROUP'
},
user_label: {
en: 'Hunt groups for ',
it: 'Hunt groups for ',
de: 'Hunt groups for ',
fr: 'Hunt groups for ',
sp: 'Hunt groups for '
}
},
pbxextension: {
title: {
en: 'Your pbx extensions.',
it: 'Your pbx extensions.',
de: 'Your pbx extensions.',
fr: 'Your pbx extensions.',
sp: 'Your pbx extensions.'
},
subtitle: {
en: 'PBX EXTENSION',
it: 'PBX EXTENSION',
de: 'PBX EXTENSION',
fr: 'PBX EXTENSION',
sp: 'PBX EXTENSION'
},
user_label: {
en: 'Pbx extensions for ',
it: 'Pbx extensions for ',
de: 'Pbx extensions for ',
fr: 'Pbx extensions for ',
sp: 'Pbx extensions for '
}
},
pbxconfig: {
title: {
en: 'Pbx Configuration.',
@ -1324,6 +1232,29 @@ Ext.define('Ngcp.csc.locales', {
de: 'Destination',
fr: 'Destination',
sp: 'Destination'
},
autoattendant: {
title: {
en: 'Your auto attendants.',
it: 'Your auto attendants.',
de: 'Your auto attendants.',
fr: 'Your auto attendants.',
sp: 'Your auto attendants.'
},
subtitle: {
en: 'AUTO ATTENDANT',
it: 'AUTO ATTENDANT',
de: 'AUTO ATTENDANT',
fr: 'AUTO ATTENDANT',
sp: 'AUTO ATTENDANT'
},
user_label: {
en: 'Auto attendants for ',
it: 'Auto attendants for ',
de: 'Auto attendants for ',
fr: 'Auto attendants for ',
sp: 'Auto attendants for '
}
}
},
common: {

@ -1,15 +0,0 @@
Ext.define('NgcpCsc.model.Fax', {
extend: 'Ext.data.Model',
fields: ["destination_number", "page_header", "content", "selected_quality", "chosen_file"],
proxy: {
type: 'ajax',
url: '/resources/data/fax.json',
autoLoad: true,
reader: {
type: 'json',
rootProperty: 'data'
}
}
});

@ -1,19 +0,0 @@
Ext.define('NgcpCsc.store.FaxSendQuality', {
extend: 'Ext.data.Store',
storeId: 'FaxSendQuality',
fields: [{
name: 'quality',
type: 'string'
}],
data: [{
quality: 'Normal'
}, {
quality: 'Fine'
}, {
quality: 'Super'
}]
});

@ -10,7 +10,7 @@ Ext.define('NgcpCsc.store.NavigationTree', {
root: {
expanded: true,
children: [{
text: 'Unified inbox',
text: 'Unified Inbox',
iconCls: 'x-fa fa-phone',
viewType: 'calls',
routeId: 'inbox',
@ -31,26 +31,19 @@ Ext.define('NgcpCsc.store.NavigationTree', {
acl: ['administrator'],
leaf: true
}, {
text: 'Call forward',
iconCls: 'x-fa fa-mail-forward',
text: 'Call Forward',
iconCls: 'x-fa fa-angle-double-right',
viewType: 'callforward',
routeId: 'callforward',
acl: ['administrator'],
leaf: true
}, {
text: 'Call barring',
text: 'Call Barring',
iconCls: 'x-fa fa-ban',
routeId: 'callblock',
viewType: 'callbarring',
acl: ['administrator'],
leaf: true
}, {
text: 'Fax Send',
iconCls: 'x-fa fa-file-text',
viewType: 'faxsend',
routeId: 'faxsend',
acl: ['administrator'],
leaf: true
}, {
text: 'Reminder',
iconCls: 'x-fa fa-sticky-note',
@ -66,7 +59,7 @@ Ext.define('NgcpCsc.store.NavigationTree', {
acl: ['administrator', 'restricted', 'host'],
leaf: true
}, {
text: 'Theme roller',
text: 'Theme Roller',
iconCls: 'x-fa fa-paint-brush',
viewType: 'themeroller',
routeId: 'themeroller',
@ -100,22 +93,15 @@ Ext.define('NgcpCsc.store.NavigationTree', {
routeId: 'pbxconfig/devices',
acl: ['administrator'],
leaf: true
}, {
text: 'Auto Attendant',
iconCls: 'x-fa fa-microphone',
viewType: 'autoattendant',
routeId: 'pbxconfig/autoattendant',
acl: ['administrator', 'restricted', 'host'],
leaf: true
}
]
}, {
text: 'Auto attendant',
iconCls: 'x-fa fa-microphone',
viewType: 'autoattendant',
routeId: 'autoattendant',
acl: ['administrator', 'restricted', 'host'],
leaf: true
}, {
text: 'Pbx extension',
iconCls: 'x-fa fa-sign-out',
viewType: 'pbxextension',
routeId: 'pbxextension',
acl: ['administrator', 'restricted', 'host'],
leaf: true
}, {
text: 'Account',
iconCls: 'x-fa fa-desktop',

@ -1,4 +0,0 @@
// custom rules
.deviceprovisioning-heading {
font-size: 24px;
}

@ -1,4 +0,0 @@
// custom rules
.faxsend-content textarea {
height: 175px !important;
}

@ -1,4 +0,0 @@
// custom rules
.faxspool-heading {
font-size: 24px;
}

@ -1,4 +0,0 @@
// custom rules
.huntgroup-heading {
font-size: 24px;
}

@ -1,4 +0,0 @@
// custom rules
.pbxextension-heading {
font-size: 24px;
}

@ -25,7 +25,6 @@ Ext.define('NgcpCsc.Application', {
'CallBarringOutgoing',
'CallBarringIncoming',
'Addressbook',
'FaxSendQuality',
'Chart',
'Groups',
'Seats',

@ -1,6 +0,0 @@
Ext.define('NgcpCsc.view.pages.autoattendant.AutoAttendantController', {
extend: 'Ext.app.ViewController',
alias: 'controller.autoattendant'
});

@ -1,48 +0,0 @@
Ext.define('NgcpCsc.view.pages.faxsend.FaxSend', {
extend: 'Ext.panel.Panel',
xtype: 'faxsend',
viewModel: 'faxsend',
controller: 'faxsend',
title: Ngcp.csc.locales.faxsend.title[localStorage.getItem('languageSelected')],
initComponent: function() {
this.items = [{
layout: 'responsivecolumn',
xtype: 'core-container',
items: [{
userCls: 'big-66 small-100',
items: [{
height: 60,
html: Ngcp.csc.locales.faxsend.subtitle[localStorage.getItem('languageSelected')]
}, {
reference: 'faxsendForm',
xtype: 'faxsendform',
width: '100%'
}, {
layout: 'hbox',
width: '99%',
defaults: {
xtype: 'button',
flex: 1
},
items: [{
text: Ngcp.csc.locales.faxsend.send_fax[localStorage.getItem('languageSelected')],
margin: '0 5 0 0',
handler: 'submitForm'
}, {
text: Ngcp.csc.locales.common.reset_form[localStorage.getItem('languageSelected')],
handler: 'resetForm'
}]
}]
}]
}];
this.callParent();
}
})

@ -1,35 +0,0 @@
Ext.define('NgcpCsc.view.pages.faxsend.FaxSendController', {
extend: 'Ext.app.ViewController',
alias: 'controller.faxsend',
resetForm: function() {
var vm = this.getViewModel();
vm.set('fax.destination_number', '');
vm.set('fax.page_header', '');
vm.set('fax.content', '');
vm.set('fax.chosen_file', '');
Ext.ComponentQuery.query('#faxsend-quality')[0].reset();
Ext.ComponentQuery.query('#fs-file')[0].reset();
},
submitForm: function (field) {
var form = this.lookupReference('faxsendForm');
if (!form.isValid()) {
return;
};
this.resetForm();
},
onEnterPressed: function (field, el) {
if (el.getKey() == el.ENTER) {
this.submitForm(field.id);
};
},
selectQuality: function (cmp, rec) {
var selectedValue = rec.get('quality');
this.getViewModel().set('fax.selected_quality', selectedValue);
}
})

@ -1,58 +0,0 @@
Ext.define('NgcpCsc.view.pages.faxsend.FaxSendForm', {
extend: 'Ext.form.Panel',
xtype: 'faxsendform',
defaultType: 'textfield',
layout: 'form',
items: [{
fieldLabel: Ngcp.csc.locales.faxsend.field_labels.destination_number[localStorage.getItem('languageSelected')],
bind: '{fax.destination_number}',
inputAttrTpl: 'data-qtip="' + Ngcp.csc.locales.faxsend.tooltips.number_fax[localStorage.getItem('languageSelected')] + '"',
listeners: {
specialKey: 'onEnterPressed'
}
}, {
xtype: 'combo',
fieldLabel: Ngcp.csc.locales.faxsend.field_labels.quality[localStorage.getItem('languageSelected')],
padding: '0 0 0 15',
store: 'FaxSendQuality',
queryMode: 'local',
itemId: 'faxsend-quality',
valueField: 'quality',
displayField: 'quality',
editable: false,
value: 'Standard',
inputAttrTpl: 'data-qtip="' + Ngcp.csc.locales.faxsend.tooltips.fax_quality[localStorage.getItem('languageSelected')] + '"',
listeners: {
'select': 'selectQuality'
}
}, {
fieldLabel: Ngcp.csc.locales.faxsend.field_labels.page_header[localStorage.getItem('languageSelected')],
bind: '{fax.page_header}',
inputAttrTpl: 'data-qtip="' + Ngcp.csc.locales.faxsend.tooltips.header_text[localStorage.getItem('languageSelected')] + '"',
listeners: {
specialKey: 'onEnterPressed'
}
}, {
xtype: 'textareafield',
fieldLabel: Ngcp.csc.locales.faxsend.field_labels.content[localStorage.getItem('languageSelected')],
bind: '{fax.content}',
cls: 'faxsend-content',
inputAttrTpl: 'data-qtip="' + Ngcp.csc.locales.faxsend.tooltips.content_text[localStorage.getItem('languageSelected')] + '"',
listeners: {
specialKey: 'onEnterPressed'
}
}, {
xtype: 'filefield',
itemId: 'fs-file',
fieldLabel: Ngcp.csc.locales.faxsend.field_labels.file[localStorage.getItem('languageSelected')],
anchor: '100%',
inputAttrTpl: 'data-qtip="' + Ngcp.csc.locales.faxsend.tooltips.file_to_send[localStorage.getItem('languageSelected')] + '"',
bind: '{fax.file}',
buttonText: Ngcp.csc.locales.faxsend.choose_file[localStorage.getItem('languageSelected')]
}]
})

@ -1,11 +0,0 @@
Ext.define('NgcpCsc.view.pages.faxsend.FaxSendModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.faxsend',
links: {
fax: {
type: 'NgcpCsc.model.Fax',
id: Ext.id()
}
}
})

@ -1,4 +1,4 @@
Ext.define('NgcpCsc.view.pages.autoattendant.AutoAttendant', {
Ext.define('NgcpCsc.view.pages.pbxconfig.autoattendant.AutoAttendant', {
extend: 'Ext.panel.Panel',
xtype: 'autoattendant',
@ -7,17 +7,17 @@ Ext.define('NgcpCsc.view.pages.autoattendant.AutoAttendant', {
controller: 'autoattendant',
title: Ngcp.csc.locales.autoattendant.title[localStorage.getItem('languageSelected')],
title: Ngcp.csc.locales.pbxconfig.autoattendant.title[localStorage.getItem('languageSelected')],
items: [{
layout: 'responsivecolumn',
xtype:'core-container',
items: [{
height: 25,
html: Ngcp.csc.locales.autoattendant.subtitle[localStorage.getItem('languageSelected')]
html: Ngcp.csc.locales.pbxconfig.autoattendant.subtitle[localStorage.getItem('languageSelected')]
}, {
height: 25,
html: Ext.String.format('<div class="autoattendant-heading">{0} {1}</div>', Ngcp.csc.locales.autoattendant.user_label[localStorage.getItem('languageSelected')], localStorage.getItem('username'))
html: Ext.String.format('<div class="autoattendant-heading">{0} {1}</div>', Ngcp.csc.locales.pbxconfig.autoattendant.user_label[localStorage.getItem('languageSelected')], localStorage.getItem('username'))
}, {
xtype: 'container',
bind: {

@ -0,0 +1,6 @@
Ext.define('NgcpCsc.view.pages.pbxconfig.autoattendant.AutoAttendantController', {
extend: 'Ext.app.ViewController',
alias: 'controller.autoattendant'
});

@ -1,4 +1,4 @@
Ext.define('NgcpCsc.view.pages.autoattendant.AutoAttendantModel', {
Ext.define('NgcpCsc.view.pages.pbxconfig.autoattendant.AutoAttendantModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.autoattendant',

@ -1,29 +0,0 @@
Ext.define('NgcpCsc.view.pages.pbxextension.PbxExtension', {
extend: 'Ext.panel.Panel',
xtype: 'pbxextension',
viewModel: 'pbxextension',
controller: 'pbxextension',
title: Ngcp.csc.locales.pbxextension.title[localStorage.getItem('languageSelected')],
items: [{
layout: 'responsivecolumn',
xtype:'core-container',
items: [{
height: 25,
html: Ngcp.csc.locales.pbxextension.subtitle[localStorage.getItem('languageSelected')]
}, {
height: 25,
html: Ext.String.format('<div class="pbxextension-heading">{0} {1}</div>', Ngcp.csc.locales.pbxextension.user_label[localStorage.getItem('languageSelected')], localStorage.getItem('username'))
}, {
xtype: 'container',
bind: {
html: '{test_viewmodel_data}'
}
}]
}]
});

@ -1,6 +0,0 @@
Ext.define('NgcpCsc.view.pages.pbxextension.PbxExtensionController', {
extend: 'Ext.app.ViewController',
alias: 'controller.pbxextension'
});

@ -1,9 +0,0 @@
Ext.define('NgcpCsc.view.pages.pbxextension.PbxExtensionModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.pbxextension',
data: {
test_viewmodel_data: 'Test data from view model.'
}
});

@ -1,9 +0,0 @@
{
"data": [{
"destination_number": "",
"page_header": "",
"content": "",
"selected_quality": "",
"chosen_file": ""
}]
}
Loading…
Cancel
Save