TT#9250 Ngcp-csc rename and consolid. calls module

Rename the calls module to unified inbox to reflect newest
changes/additions, and clean up/consolidate locales related
to change.

Change-Id: I88240e99d1f63f16cd22dfa45676584fcda19f04
changes/55/10855/3
Robert Axelsen 8 years ago
parent ba6275a9d2
commit c7e79877b4

@ -84,20 +84,6 @@ Ext.define('Ngcp.csc.locales', {
fr: 'Welcome to your personal desktop.', fr: 'Welcome to your personal desktop.',
sp: 'Welcome to your personal desktop.' sp: 'Welcome to your personal desktop.'
}, },
account_balance: {
en: 'ACCOUNT BALANCE',
it: 'ACCOUNT BALANCE',
de: 'ACCOUNT BALANCE',
fr: 'ACCOUNT BALANCE',
sp: 'ACCOUNT BALANCE'
},
clients: {
en: 'CLIENTS',
it: 'CLIENTS',
de: 'CLIENTS',
fr: 'CLIENTS',
sp: 'CLIENTS'
},
clients_label: { clients_label: {
en: 'client devices registered', en: 'client devices registered',
it: 'client devices registered', it: 'client devices registered',
@ -119,19 +105,19 @@ Ext.define('Ngcp.csc.locales', {
fr: 'CALL FORWARDS', fr: 'CALL FORWARDS',
sp: 'CALL FORWARDS' sp: 'CALL FORWARDS'
}, },
all_voicemails: { seats: {
en: 'all voicemails', en: 'Seats',
it: 'all voicemails', it: 'Seats',
de: 'all voicemails', de: 'Seats',
fr: 'all voicemails', fr: 'Seats',
sp: 'all voicemails' sp: 'Seats'
}, },
reminder: { devices: {
en: 'view settings', en: 'Devices',
it: 'view settings', it: 'Devices',
de: 'view settings', de: 'Devices',
fr: 'view settings', fr: 'Devices',
sp: 'view settings' sp: 'Devices'
} }
}, },
calls: { calls: {
@ -185,6 +171,13 @@ Ext.define('Ngcp.csc.locales', {
de: 'all calls', de: 'all calls',
fr: 'all calls', fr: 'all calls',
sp: 'all calls' sp: 'all calls'
},
pages: {
en: 'pages',
it: 'pages',
de: 'pages',
fr: 'pages',
sp: 'pages'
} }
}, },
callbarring: { callbarring: {
@ -630,13 +623,6 @@ Ext.define('Ngcp.csc.locales', {
fr: 'pbx image', fr: 'pbx image',
sp: 'pbx image' sp: 'pbx image'
}, },
groups: {
en: 'groups',
it: 'groups',
de: 'groups',
fr: 'groups',
sp: 'groups'
},
mac: { mac: {
en: 'mac address', en: 'mac address',
it: 'mac address', it: 'mac address',
@ -694,35 +680,6 @@ Ext.define('Ngcp.csc.locales', {
sp: 'disabled' sp: 'disabled'
} }
}, },
voicemails: {
title: {
en: 'Your voicemail recordings.',
it: 'Your voicemail recordings.',
de: 'Your voicemail recordings.',
fr: 'Your voicemail recordings.',
sp: 'Your voicemail recordings.'
},
subtitle: {
en: 'RECEIVED VOICEMAILS',
it: 'RECEIVED VOICEMAILS',
de: 'RECEIVED VOICEMAILS',
fr: 'RECEIVED VOICEMAILS',
sp: 'RECEIVED VOICEMAILS'
},
user_label: {
en: 'Voicemails for ',
it: 'Voicemails for ',
de: 'Voicemails for ',
fr: 'Voicemails for ',
sp: 'Voicemails for'
},
by_months: {
en: 'VOICEMAILS BY MONTH',
it: 'VOICEMAILS BY MONTH',
de: 'VOICEMAILS BY MONTH',
fr: 'VOICEMAILS BY MONTH',
sp: 'VOICEMAILS BY MONTH'
},
settings: { settings: {
title: { title: {
en: 'Settings', en: 'Settings',
@ -758,14 +715,6 @@ Ext.define('Ngcp.csc.locales', {
de: 'With your 4-digit PIN you may query your voicebox from any telephone.', de: 'With your 4-digit PIN you may query your voicebox from any telephone.',
fr: 'With your 4-digit PIN you may query your voicebox from any telephone.', fr: 'With your 4-digit PIN you may query your voicebox from any telephone.',
sp: 'With your 4-digit PIN you may query your voicebox from any telephone.' sp: 'With your 4-digit PIN you may query your voicebox from any telephone.'
},
save: {
en: 'save settings',
it: 'save settings',
de: 'save settings',
fr: 'save settings',
sp: 'save settings'
}
} }
}, },
chat: { chat: {
@ -1058,73 +1007,6 @@ Ext.define('Ngcp.csc.locales', {
sp: 'Webrtc' sp: 'Webrtc'
} }
}, },
faxspool: {
title: {
en: 'Your faxes.',
it: 'Your faxes.',
de: 'Your faxes.',
fr: 'Your faxes.',
sp: 'Your faxes.'
},
subtitle: {
en: 'FAX SPOOL',
it: 'FAX SPOOL',
de: 'FAX SPOOL',
fr: 'FAX SPOOL',
sp: 'FAX SPOOL'
},
user_label: {
en: 'Faxes for ',
it: 'Faxes for ',
de: 'Faxes for ',
fr: 'Faxes for ',
sp: 'Faxes for '
},
columns: {
number: {
en: '#',
it: '#',
de: '#',
fr: '#',
sp: '#'
},
timestamp: {
en: 'timestamp',
it: 'timestamp',
de: 'timestamp',
fr: 'timestamp',
sp: 'timestamp'
},
status: {
en: 'status',
it: 'status',
de: 'status',
fr: 'status',
sp: 'status'
},
direction: {
en: 'direction',
it: 'direction',
de: 'direction',
fr: 'direction',
sp: 'direction'
},
callee: {
en: 'callee',
it: 'callee',
de: 'callee',
fr: 'callee',
sp: 'callee'
},
pages: {
en: 'pages',
it: 'pages',
de: 'pages',
fr: 'pages',
sp: 'pages'
}
}
},
faxsend: { faxsend: {
title: { title: {
en: 'Send a fax.', en: 'Send a fax.',
@ -1703,6 +1585,13 @@ Ext.define('Ngcp.csc.locales', {
de: 'done', de: 'done',
fr: 'done', fr: 'done',
sp: 'done' sp: 'done'
},
groups: {
en: 'Groups',
it: 'Groups',
de: 'Groups',
fr: 'Groups',
sp: 'Groups'
} }
} }
} }

@ -17,10 +17,10 @@ Ext.define('NgcpCsc.store.NavigationTree', {
acl: ['administrator', 'restricted', 'host'], //TODO define real roles, which should be delivered along with user info after successfull login acl: ['administrator', 'restricted', 'host'], //TODO define real roles, which should be delivered along with user info after successfull login
leaf: true leaf: true
}, { }, {
text: 'Calls', text: 'Unified inbox',
iconCls: 'x-fa fa-phone', iconCls: 'x-fa fa-phone',
viewType: 'calls', viewType: 'calls',
routeId: 'callist', routeId: 'inbox',
acl: ['administrator', 'restricted'], acl: ['administrator', 'restricted'],
leaf: true leaf: true
}, { }, {

@ -113,7 +113,7 @@ Ext.define('NgcpCsc.view.common.gridfilters.GridFilters', {
labelAlign: 'top', labelAlign: 'top',
bind: '{filtergrid.groups}', bind: '{filtergrid.groups}',
hidden: !this._pbxconfigSeats, hidden: !this._pbxconfigSeats,
fieldLabel: Ngcp.csc.locales.filters.groups[localStorage.getItem('languageSelected')] renderer: 'renderGroupsFilterText'
}, { }, {
xtype: 'textfield', xtype: 'textfield',
labelAlign: 'top', labelAlign: 'top',

@ -163,5 +163,10 @@ Ext.define('NgcpCsc.view.common.gridfilters.GridFiltersController', {
vm.set('filtergrid.disabled', true); vm.set('filtergrid.disabled', true);
vm.set('filtergrid.device', ''); vm.set('filtergrid.device', '');
vm.set('filtergrid.mac', ''); vm.set('filtergrid.mac', '');
},
renderGroupsFilterText: function(value, metaData) {
return Ngcp.csc.locales.common.groups[localStorage.getItem('languageSelected')].toLowerCase();
} }
}); });

@ -17,7 +17,7 @@ Ext.define('NgcpCsc.view.pages.calls.Calls', {
_linkedStoreId: 'Calls', _linkedStoreId: 'Calls',
_callFilters: true _callFilters: true
}), { }), {
title: Ngcp.csc.locales.voicemails.settings.title[localStorage.getItem('languageSelected')], title: Ngcp.csc.locales.settings.title[localStorage.getItem('languageSelected')],
xtype: 'core-container', xtype: 'core-container',
padding: 0, padding: 0,
collapsible: true, collapsible: true,
@ -32,11 +32,11 @@ Ext.define('NgcpCsc.view.pages.calls.Calls', {
xtype: 'textfield', xtype: 'textfield',
labelAlign: 'top', labelAlign: 'top',
bind: '{settings.email}', bind: '{settings.email}',
fieldLabel: Ngcp.csc.locales.voicemails.settings.description[localStorage.getItem('languageSelected')] fieldLabel: Ngcp.csc.locales.settings.description[localStorage.getItem('languageSelected')]
}, { }, {
xtype: 'checkbox', xtype: 'checkbox',
bind: '{settings.attach_rec}', bind: '{settings.attach_rec}',
boxLabel: Ngcp.csc.locales.voicemails.settings.attach_recording[localStorage.getItem('languageSelected')] boxLabel: Ngcp.csc.locales.settings.attach_recording[localStorage.getItem('languageSelected')]
}, { }, {
xtype: 'numberfield', xtype: 'numberfield',
labelAlign: 'left', labelAlign: 'left',
@ -44,9 +44,9 @@ Ext.define('NgcpCsc.view.pages.calls.Calls', {
hideTrigger: true, hideTrigger: true,
maxValue: 9999, maxValue: 9999,
bind: '{settings.pin}', bind: '{settings.pin}',
fieldLabel: Ngcp.csc.locales.voicemails.settings.pin[localStorage.getItem('languageSelected')] fieldLabel: Ngcp.csc.locales.settings.pin[localStorage.getItem('languageSelected')]
}, { }, {
html: Ngcp.csc.locales.voicemails.settings.pin_instructions[localStorage.getItem('languageSelected')] html: Ngcp.csc.locales.settings.pin_instructions[localStorage.getItem('languageSelected')]
}, { }, {
margin: '10 0 0 0', margin: '10 0 0 0',
items: [{ items: [{

@ -77,7 +77,7 @@ Ext.define('NgcpCsc.view.pages.calls.CallsGrid', {
'<tpl case="fax">', // fax tpl '<tpl case="fax">', // fax tpl
'<div class="card-wrapper">', '<div class="card-wrapper">',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.common.duration[localStorage.getItem('languageSelected')] + '</b>: {duration}</div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.common.duration[localStorage.getItem('languageSelected')] + '</b>: {duration}</div>',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.faxspool.columns.pages[localStorage.getItem('languageSelected')] + '</b>: {pages}</div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.calls.pages[localStorage.getItem('languageSelected')] + '</b>: {pages}</div>',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.common.date[localStorage.getItem('languageSelected')] + '</b>: {[ Ext.util.Format.date(values.start_time, "d.m.Y h:i:s")]} </div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.common.date[localStorage.getItem('languageSelected')] + '</b>: {[ Ext.util.Format.date(values.start_time, "d.m.Y h:i:s")]} </div>',
'<div class="card-icon-row">', '<div class="card-icon-row">',
'<div id="{id}" class="card-icon"><a href="resources/docs/fax.pdf" target="_blank"><i class="fa fa-file-pdf-o green-icon fa-2x pointer" aria-hidden="true"></i></a></div>', '<div id="{id}" class="card-icon"><a href="resources/docs/fax.pdf" target="_blank"><i class="fa fa-file-pdf-o green-icon fa-2x pointer" aria-hidden="true"></i></a></div>',

@ -43,7 +43,7 @@ Ext.define('NgcpCsc.view.pages.pbxconfig.seats.Seats', {
xtype: 'textfield', xtype: 'textfield',
labelAlign: 'top', labelAlign: 'top',
bind: '{selection.groups}', bind: '{selection.groups}',
fieldLabel: Ngcp.csc.locales.filters.groups[localStorage.getItem('languageSelected')] renderer: 'renderSeatsText'
}, { }, {
xtype: 'textfield', xtype: 'textfield',
labelAlign: 'top', labelAlign: 'top',

@ -82,7 +82,10 @@ Ext.define('NgcpCsc.view.pages.pbxconfig.seats.SeatsController', {
this.fireEvent('showmessage', true, Ngcp.csc.locales.common.save_success[localStorage.getItem('languageSelected')]); this.fireEvent('showmessage', true, Ngcp.csc.locales.common.save_success[localStorage.getItem('languageSelected')]);
this.toggleNewSeatBtn(true); this.toggleNewSeatBtn(true);
form.hide(); form.hide();
} },
renderSeatsText: function(value, metaData) {
return Ngcp.csc.locales.common.groups[localStorage.getItem('languageSelected')].toLowerCase();
}
}); });

@ -43,7 +43,7 @@ Ext.define('NgcpCsc.view.pages.seats.SeatsGrid', {
rowBodyTpl: new Ext.XTemplate( rowBodyTpl: new Ext.XTemplate(
'<div class="card-wrapper">', '<div class="card-wrapper">',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.extensions[localStorage.getItem('languageSelected')] + '</b>: {extension} </div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.extensions[localStorage.getItem('languageSelected')] + '</b>: {extension} </div>',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.groups[localStorage.getItem('languageSelected')] + '</b>: {groups} </div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.common.groups[localStorage.getItem('languageSelected')].toLowerCase() + '</b>: {groups} </div>',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.numbers[localStorage.getItem('languageSelected')] + '</b>: {numbers} </div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.numbers[localStorage.getItem('languageSelected')] + '</b>: {numbers} </div>',
'<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.phone_devices[localStorage.getItem('languageSelected')] + '</b>: {phone_devices} </div>', '<div class="card-data-row"><span class="fa fa-file-text-o"></span><b>' + Ngcp.csc.locales.filters.phone_devices[localStorage.getItem('languageSelected')] + '</b>: {phone_devices} </div>',
'<div class="card-icon-row">', '<div class="card-icon-row">',

@ -22,9 +22,9 @@ Ext.define('NgcpCsc.view.pages.summary.Summary', {
}] }]
}, },
items: [{ items: [{
title: 'Seats', title: Ngcp.csc.locales.summary.seats[localStorage.getItem('languageSelected')],
xtype: 'summary-pie', xtype: 'summary-pie',
name:'seats', name: 'seats',
store: { store: {
type: 'Chart', type: 'Chart',
proxy: { proxy: {
@ -37,9 +37,9 @@ Ext.define('NgcpCsc.view.pages.summary.Summary', {
} }
} }
}, { }, {
title: 'Groups', title: Ngcp.csc.locales.common.groups[localStorage.getItem('languageSelected')],
xtype: 'summary-pie', xtype: 'summary-pie',
name:'groups', name: 'groups',
store: { store: {
type: 'Chart', type: 'Chart',
proxy: { proxy: {
@ -52,9 +52,9 @@ Ext.define('NgcpCsc.view.pages.summary.Summary', {
} }
} }
}, { }, {
title: 'Devices', title: Ngcp.csc.locales.summary.devices[localStorage.getItem('languageSelected')],
xtype: 'summary-pie', xtype: 'summary-pie',
name:'devices', name: 'devices',
store: { store: {
type: 'Chart', type: 'Chart',
proxy: { proxy: {

@ -19,4 +19,5 @@ Ext.define('NgcpCsc.view.pages.summary.SummaryController', {
var assignedSlots = store.findRecord("name", 'Assigned'); var assignedSlots = store.findRecord("name", 'Assigned');
tooltip.setHtml(record.get('name') + ': ' + record.get('data') + ' of ' + (freeSlots.get('data') + assignedSlots.get('data'))); tooltip.setHtml(record.get('name') + ': ' + record.get('data') + ' of ' + (freeSlots.get('data') + assignedSlots.get('data')));
} }
}); });

Loading…
Cancel
Save