From 3284bd0d7478ceab53dd05090e277e9328bdc261 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 7 Mar 2016 15:42:57 +0100 Subject: [PATCH] Feature #4363: Fix vdc create tabs --- .../app/tabs/vdcs-tab/form-panels/create.js | 2 +- .../vdcs-tab/form-panels/create/wizard.hbs | 16 +++++++-------- .../app/tabs/vdcs-tab/utils/resources-zone.js | 4 ++-- .../vdcs-tab/utils/resources-zone/html.hbs | 20 +++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create.js b/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create.js index afd1201970..202b776825 100644 --- a/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create.js @@ -150,7 +150,7 @@ define(function(require) { }); } - context.foundation(); + Foundation.reflow(context, 'tabs'); Tips.setup(); } diff --git a/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create/wizard.hbs b/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create/wizard.hbs index a86261b8e5..5d1fe73e97 100644 --- a/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create/wizard.hbs +++ b/src/sunstone/public/app/tabs/vdcs-tab/form-panels/create/wizard.hbs @@ -16,13 +16,13 @@
-
-

{{tr "General"}}
-

{{tr "Groups"}}
-

{{tr "Resources"}}
+
+

{{tr "General"}}
+

{{tr "Groups"}}
+

{{tr "Resources"}}
-
-
+
+
{{{customTagsHTML}}}
-
+
{{{groupsTableHTML}}}
-
+
{{{resourcesTabHTML}}}
diff --git a/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone.js b/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone.js index 18d778625f..bc27035510 100644 --- a/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone.js +++ b/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone.js @@ -111,8 +111,8 @@ define(function(require) { function _setup(context){ var that = this; - context.foundation(); - + Foundation.reflow(context, 'tabs'); + $.each(["clusters", "hosts", "vnets", "datastores"], function(i,res_name){ if(that.resources != undefined){ if (that.resources[res_name].length == 1 && diff --git a/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone/html.hbs b/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone/html.hbs index 04aeced0c5..a9209763f7 100644 --- a/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone/html.hbs +++ b/src/sunstone/public/app/tabs/vdcs-tab/utils/resources-zone/html.hbs @@ -16,14 +16,14 @@
-
-

{{tr "Clusters"}}
-

{{tr "Hosts"}}
-

{{tr "VNets"}}
-

{{tr "Datastores"}}
+
+

{{tr "Clusters"}}
+

{{tr "Hosts"}}
+

{{tr "VNets"}}
+

{{tr "Datastores"}}
-
-
+
+
-
+
-
+
-
+