TT#7011 Change ngcp-csc links to proper buttons

> For Call Barring and Fax Send modules, change text link buttons
  with previous .link class to proper buttons

Imo, the remaining .link class style links in the app does not need
replacing with buttons, as their function is to link to either
redirect or change filter/listing.

Change-Id: Ie58a339e8f64f09f466ae2f11c164388cf2b9b40
changes/00/9800/1
Robert Axelsen 9 years ago
parent c51f256eca
commit 0e165d6553

@ -54,17 +54,16 @@ Ext.define('NgcpCsc.view.pages.callbarring.CallBarring', {
id: 'incoming2'
}]
}, {
xtype: 'container',
height: 40,
padding: '0 0 10 10',
html: Ngcp.csc.locales.callbarring.save_settings[localStorage.getItem('languageSelected')].toLowerCase(),
cls: 'link',
listeners: {
click: {
element: 'el',
fn: 'saveBarrSettings'
}
}
layout: 'hbox',
margin: '0 0 0 5',
defaults: {
xtype: 'button'
},
items: [{
text: Ngcp.csc.locales.callbarring.save_settings[localStorage.getItem('languageSelected')].toLowerCase(),
margin: '0 0 20 0',
handler: 'saveBarrSettings'
}]
},
incomingGrid, {
flex: 1,
@ -81,18 +80,22 @@ Ext.define('NgcpCsc.view.pages.callbarring.CallBarring', {
specialKey: 'onEnterPressed'
}
}, {
xtype: 'container',
id: 'incoming-new-btn',
height: 40,
padding: '10 0 10 10',
html: Ngcp.csc.locales.callbarring.add_number[localStorage.getItem('languageSelected')].toLowerCase(),
cls: 'link',
listeners: {
click: {
element: 'el',
fn: 'saveNumber'
layout: 'hbox',
margin: '0 0 0 5',
defaults: {
xtype: 'button'
},
items: [{
text: Ngcp.csc.locales.callbarring.add_number[localStorage.getItem('languageSelected')].toLowerCase(),
margin: '10 0 20 0',
id: 'incoming-new-btn',
listeners: {
click: {
element: 'el',
fn: 'saveNumber'
}
}
}
}]
}, {
xtype: 'container',
padding: '0 0 10 10',
@ -123,17 +126,16 @@ Ext.define('NgcpCsc.view.pages.callbarring.CallBarring', {
id: 'outgoing2'
}]
}, {
xtype: 'container',
height: 40,
padding: '0 0 10 10',
html: Ngcp.csc.locales.callbarring.save_settings[localStorage.getItem('languageSelected')].toLowerCase(),
cls: 'link',
listeners: {
click: {
element: 'el',
fn: 'saveBarrSettings'
}
}
layout: 'hbox',
margin: '0 0 0 5',
defaults: {
xtype: 'button'
},
items: [{
text: Ngcp.csc.locales.callbarring.save_settings[localStorage.getItem('languageSelected')].toLowerCase(),
margin: '0 0 20 0',
handler: 'saveBarrSettings'
}]
},
outgoingGrid, {
flex: 1,
@ -149,20 +151,40 @@ Ext.define('NgcpCsc.view.pages.callbarring.CallBarring', {
listeners: {
specialKey: 'onEnterPressed'
}
}, {
xtype: 'container',
id: 'outgoing-new-btn',
height: 40,
padding: '10 0 10 10',
html: Ngcp.csc.locales.callbarring.add_number[localStorage.getItem('languageSelected')].toLowerCase(),
cls: 'link',
listeners: {
click: {
element: 'el',
fn: 'saveNumber'
},
{
layout: 'hbox',
margin: '0 0 0 5',
defaults: {
xtype: 'button'
},
items: [{
text: Ngcp.csc.locales.callbarring.add_number[localStorage.getItem('languageSelected')].toLowerCase(),
margin: '10 0 20 0',
id: 'outgoing-new-btn',
listeners: {
click: {
element: 'el',
fn: 'saveNumber'
}
}
}
}, {
}]
},
// {
// xtype: 'container',
// id: 'outgoing-new-btn',
// height: 40,
// padding: '10 0 10 10',
// html: Ngcp.csc.locales.callbarring.add_number[localStorage.getItem('languageSelected')].toLowerCase(),
// cls: 'link',
// listeners: {
// click: {
// element: 'el',
// fn: 'saveNumber'
// }
// }
// },
{
xtype: 'container',
padding: '0 20 10 10',
html: Ngcp.csc.locales.callbarring.new_entry_instructions[localStorage.getItem('languageSelected')]

@ -25,29 +25,19 @@ Ext.define('NgcpCsc.view.pages.faxsend.FaxSend', {
xtype: 'faxsendform'
}]
}, {
xtype: 'container',
height: 40,
padding: '10 0 10 10',
html: Ngcp.csc.locales.fax_send.send_fax[localStorage.getItem('languageSelected')].toLowerCase(),
cls: 'link',
listeners: {
click: {
element: 'el',
fn: 'submitForm'
}
}
}, {
xtype: 'container',
height: 40,
padding: '10 0 10 10',
html: Ngcp.csc.locales.fax_send.reset_form[localStorage.getItem('languageSelected')].toLowerCase(),
cls: 'link',
listeners: {
click: {
element: 'el',
fn: 'resetForm'
}
}
layout: 'hbox',
margin: '0 0 0 5',
defaults: {
xtype: 'button'
},
items: [{
text: Ngcp.csc.locales.fax_send.send_fax[localStorage.getItem('languageSelected')],
margin: '0 5 0 0',
handler: 'submitForm'
}, {
text: Ngcp.csc.locales.fax_send.reset_form[localStorage.getItem('languageSelected')],
handler: 'resetForm'
}]
}];
this.callParent();
}

Loading…
Cancel
Save