cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [11/30] git commit: updated refs/heads/ui-vpc-redesign to 9ac67b8
Date Mon, 13 May 2013 18:13:16 GMT
Add sample detail view


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ad8f1065
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ad8f1065
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ad8f1065

Branch: refs/heads/ui-vpc-redesign
Commit: ad8f10656c937f87ad858bbd712db5b5a4cc37d3
Parents: 0696340
Author: Brian Federle <brian.federle@citrix.com>
Authored: Fri May 3 14:12:26 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Fri May 3 14:12:26 2013 -0700

----------------------------------------------------------------------
 .../asa1000vNetworkProvider.js                     |   22 +++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ad8f1065/ui/modules/asa1000vNetworkProvider/asa1000vNetworkProvider.js
----------------------------------------------------------------------
diff --git a/ui/modules/asa1000vNetworkProvider/asa1000vNetworkProvider.js b/ui/modules/asa1000vNetworkProvider/asa1000vNetworkProvider.js
index 5818c5b..cae30bf 100644
--- a/ui/modules/asa1000vNetworkProvider/asa1000vNetworkProvider.js
+++ b/ui/modules/asa1000vNetworkProvider/asa1000vNetworkProvider.js
@@ -38,6 +38,28 @@
               { name: 'device3', ipaddress: '192.168.1.14', state: 'Enabled' }
             ]
           });
+        },
+
+        detailView: {
+          tabs: {
+            details: {
+              title: 'label.details',
+              fields: [
+                {
+                  name: { label: 'label.name' }
+                },
+                {
+                  ipaddress: { label: 'label.ip.address' },
+                  state: { label: 'label.state' }
+                }
+              ],
+              dataProvider: function(args) {
+                args.response.success({
+                  data: args.context.asa1000vDevices[0]
+                });
+              }
+            }
+          }
         }
       },
       detailView: {


Mime
View raw message