cloudStack 3.0 new UI - NaaS - F5, SRX - when status is disabled, click F5 or SRX will lead to an Add form.

This commit is contained in:
Jessica Wang 2011-11-17 15:00:41 -08:00
parent 64f5681097
commit 496f591e56

View File

@ -922,6 +922,44 @@
ipaddress: { label: 'IP Address' },
state: { label: 'Status' }
},
actions: {
add: {
label: 'Add new F5',
createForm: {
title: 'Add F5',
fields: {
name: {
label: 'Name',
validation: { required: true }
},
ipaddress: {
label: 'IP Address',
validation: { required: true }
},
supportedServices: {
label: 'Supported Services',
isBoolean: true,
multiArray: {
serviceA: { label: 'Service A' },
serviceB: { label: 'Service B' },
serviceC: { label: 'Service C' }
}
}
}
},
action: function(args) {
args.response.success();
},
messages: {
notification: function(args) {
return 'Added new F5';
}
},
notification: {
poll: testData.notifications.testPoll
}
}
},
dataProvider: function(args) {
setTimeout(function() {
args.response.success({
@ -955,6 +993,44 @@
ipaddress: { label: 'IP Address' },
state: { label: 'Status' }
},
actions: {
add: {
label: 'Add new SRX',
createForm: {
title: 'Add NetScaler SRX',
fields: {
name: {
label: 'Name',
validation: { required: true }
},
ipaddress: {
label: 'IP Address',
validation: { required: true }
},
supportedServices: {
label: 'Supported Services',
isBoolean: true,
multiArray: {
serviceA: { label: 'Service A' },
serviceB: { label: 'Service B' },
serviceC: { label: 'Service C' }
}
}
}
},
action: function(args) {
args.response.success();
},
messages: {
notification: function(args) {
return 'Added new SRX';
}
},
notification: {
poll: testData.notifications.testPoll
}
}
},
dataProvider: function(args) {
setTimeout(function() {
args.response.success({