You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/05/15 21:28:06 UTC
git commit: updated refs/heads/ui-vpc-redesign to 42ed9e1
Updated Branches:
refs/heads/ui-vpc-redesign 7ed11ee91 -> 42ed9e13f
Add placeholder tier LB list view + add action
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/42ed9e13
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/42ed9e13
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/42ed9e13
Branch: refs/heads/ui-vpc-redesign
Commit: 42ed9e13f3b14a42207501c80225df028d36eb39
Parents: 7ed11ee
Author: Brian Federle <br...@citrix.com>
Authored: Wed May 15 12:28:03 2013 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Wed May 15 12:28:03 2013 -0700
----------------------------------------------------------------------
ui/scripts/vpc.js | 52 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 49 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/42ed9e13/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index 74c7822..96c983b 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -298,11 +298,57 @@
tierLoadBalancers: {
listView: {
fields: {
- name: { label: 'label.name' },
- total: { label: 'label.total' }
+ ipaddress: { label: 'label.ip.address' },
+ type: { label: 'label.type' }
},
dataProvider: function(args) {
- args.response.success({ data: [] });
+ args.response.success({
+ data: [
+ { ipaddress: '10.3.2.1', type: 'Internal' },
+ { ipaddress: '10.3.2.3', type: 'Internal' },
+ { ipaddress: '10.232.1.4', type: 'Public' }
+ ]
+ });
+ },
+ actions: {
+ add: {
+ label: 'Add new LB',
+ createForm: {
+ title: 'Add new LB',
+ desc: 'Please specify the type of load balancer you would like to create.',
+ fields: {
+ type: {
+ label: 'label.type',
+ select: function(args) {
+ args.response.success({
+ data: [
+ { id: 'internal', description: 'Internal' },
+ { id: 'public', description: 'Public' }
+ ]
+ });
+ }
+ }
+ }
+ },
+ messages: {
+ notification: function(args) {
+ return 'Add LB to VPC network';
+ }
+ },
+ action: function(args) {
+ args.response.success();
+ },
+ notification: {
+ poll: function(args) {
+ args.complete({
+ data: {
+ ipaddress: '10.0.3.2',
+ type: 'Internal'
+ }
+ });
+ }
+ }
+ }
}
}
},