From 496f591e56964629ce7d7946509c1ec6a4473177 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 17 Nov 2011 15:00:41 -0800 Subject: [PATCH] cloudStack 3.0 new UI - NaaS - F5, SRX - when status is disabled, click F5 or SRX will lead to an Add form. --- ui/scripts/system.js | 76 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index a7c005d8aed..3f30aa0875c 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -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({