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.
68 lines
1.8 KiB
68 lines
1.8 KiB
Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainGrid', {
|
|
extend: 'Ext.grid.Panel',
|
|
|
|
selModel: 'cellmodel',
|
|
|
|
rowLines: false,
|
|
width: '100%',
|
|
hideHeaders: true,
|
|
ui: 'cf-grid',
|
|
|
|
viewConfig: {
|
|
plugins: {
|
|
ptype: 'gridviewdragdrop',
|
|
dragText: Ngcp.csc.locales.callforward.drag_text[localStorage.getItem('languageSelected')]
|
|
},
|
|
markDirty: false,
|
|
emptyText: Ngcp.csc.locales.callforward.nowhere[localStorage.getItem('languageSelected')],
|
|
stripeRows: false
|
|
},
|
|
|
|
plugins: {
|
|
ptype: 'cellediting',
|
|
clicksToEdit: 1
|
|
},
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
me.columns = [{
|
|
dataIndex: 'phone',
|
|
width: 105,
|
|
editor: {
|
|
xtype: 'textfield',
|
|
emptyText: Ngcp.csc.locales.callforward.enter_number[localStorage.getItem('languageSelected')]
|
|
},
|
|
renderer: 'renderPhoneColumn'
|
|
}, {
|
|
dataIndex: 'ring_for',
|
|
align: 'left',
|
|
width: 180,
|
|
editor: {
|
|
xtype: 'textfield',
|
|
emptyText: Ngcp.csc.locales.callforward.enter_secs[localStorage.getItem('languageSelected')]
|
|
},
|
|
renderer: 'renderSecsColumn'
|
|
}, {
|
|
text: Ngcp.csc.locales.common.delete[localStorage.getItem('languageSelected')],
|
|
xtype: 'actioncolumn',
|
|
width: 30,
|
|
align: 'right',
|
|
|
|
iconCls: 'x-fa fa-trash',
|
|
handler: 'removeEntry'
|
|
}, {
|
|
text: Ngcp.csc.locales.callforward.move[localStorage.getItem('languageSelected')],
|
|
xtype: 'actioncolumn',
|
|
width: 30,
|
|
align: 'right',
|
|
disabled: true,
|
|
iconCls: 'x-fa fa-arrows'
|
|
}];
|
|
|
|
me.callParent();
|
|
|
|
}
|
|
|
|
});
|