You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mt...@apache.org on 2015/09/19 03:31:40 UTC
[34/50] git commit: updated refs/heads/sf-plugins to 157efc3
Adding the Add Virtual Network window
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/80ab54cd
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/80ab54cd
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/80ab54cd
Branch: refs/heads/sf-plugins
Commit: 80ab54cd90d49b2d40458dafd296f1b736dd1209
Parents: 9cff6a7
Author: Mike Tutkowski <mi...@solidfire.com>
Authored: Tue Jul 21 12:50:50 2015 -0600
Committer: Mike Tutkowski <mi...@solidfire.com>
Committed: Fri Sep 18 19:28:22 2015 -0600
----------------------------------------------------------------------
ui/plugins/sfAdministration/sfAdministration.js | 137 ++++++++++++++++++-
1 file changed, 135 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/80ab54cd/ui/plugins/sfAdministration/sfAdministration.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfAdministration/sfAdministration.js b/ui/plugins/sfAdministration/sfAdministration.js
index 7afeeda..cbabf39 100644
--- a/ui/plugins/sfAdministration/sfAdministration.js
+++ b/ui/plugins/sfAdministration/sfAdministration.js
@@ -61,7 +61,7 @@
},
messages: {
confirm: function(args) {
- return 'Please fill in the following data to add a new reference to a cluster.';
+ return 'Please fill in the following data to add a reference to a cluster.';
},
notification: function(args) {
return 'Add Reference to Cluster';
@@ -69,7 +69,7 @@
},
createForm: {
title: 'Add Reference to Cluster',
- desc: 'Please fill in the following data to add a new reference to a cluster.',
+ desc: 'Please fill in the following data to add a reference to a cluster.',
fields: {
availabilityZone: {
label: 'label.availability.zone',
@@ -337,6 +337,139 @@
args.response.error(errorMessage);
}
});
+ },
+ actions: {
+ add: {
+ label: 'Add Virtual Network',
+ preFilter: function(args) {
+ return true;
+ },
+ messages: {
+ confirm: function(args) {
+ return 'Please fill in the following data to add a virtual network.';
+ },
+ notification: function(args) {
+ return 'Add Virtual Network';
+ }
+ },
+ createForm: {
+ title: 'Add Virtual Network',
+ desc: 'Please fill in the following data to add a virtual network.',
+ fields: {
+ account: {
+ label: 'Account',
+ validation: {
+ required: true
+ },
+ select: function(args) {
+ $.ajax({
+ url: createURL("listAccounts&listAll=true"),
+ dataType: "json",
+ async: true,
+ success: function(json) {
+ var accountObjs = json.listaccountsresponse.account;
+
+ args.response.success({
+ descriptionField: 'name',
+ data: accountObjs
+ });
+ }
+ });
+ }
+ },
+ name: {
+ label: 'Name',
+ validation: {
+ required: true
+ }
+ },
+ description: {
+ label: 'Description',
+ validation: {
+ required: true
+ }
+ },
+ tag: {
+ label: 'Tag',
+ validation: {
+ required: true
+ }
+ },
+ physicalnetwork: {
+ label: 'Physical Network',
+ validation: {
+ required: true
+ },
+ select: function(args) {
+ $.ajax({
+ url: createURL("listAccounts&listAll=true"),
+ dataType: "json",
+ async: true,
+ success: function(json) {
+ var accountObjs = json.listaccountsresponse.account;
+
+ args.response.success({
+ descriptionField: 'name',
+ data: accountObjs
+ });
+ }
+ });
+ }
+ },
+ networkoffering: {
+ label: 'Network Offering',
+ validation: {
+ required: true
+ },
+ select: function(args) {
+ $.ajax({
+ url: createURL("listAccounts&listAll=true"),
+ dataType: "json",
+ async: true,
+ success: function(json) {
+ var accountObjs = json.listaccountsresponse.account;
+
+ args.response.success({
+ descriptionField: 'name',
+ data: accountObjs
+ });
+ }
+ });
+ }
+ },
+ gateway: {
+ label: 'Gateway',
+ validation: {
+ required: true
+ }
+ },
+ netmask: {
+ label: 'Netmask',
+ validation: {
+ required: true
+ }
+ },
+ startip: {
+ label: 'Start IP',
+ validation: {
+ required: true
+ }
+ },
+ endip: {
+ label: 'End IP',
+ validation: {
+ required: true
+ }
+ },
+ svip: {
+ label: 'SVIP',
+ validation: {
+ required: true
+ }
+ }
+ }
+ }
+ }
}
}
}