From 4d6a664131ce493ce7e907c109068a2eccc17c57 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 10 Jul 2015 14:26:06 +0200 Subject: [PATCH] Add DISK cost to the template creation --- src/sunstone/public/app/tabs/provision-tab.js | 34 ++--- .../general/capacity-inputs/html.hbs | 134 ++++++++++-------- 2 files changed, 83 insertions(+), 85 deletions(-) diff --git a/src/sunstone/public/app/tabs/provision-tab.js b/src/sunstone/public/app/tabs/provision-tab.js index 08f661d57d..8a53e923ea 100644 --- a/src/sunstone/public/app/tabs/provision-tab.js +++ b/src/sunstone/public/app/tabs/provision-tab.js @@ -290,34 +290,20 @@ define(function(require) { ' '+ Locale.tr("Capacity")+ ''+ + ''+ + ''+(capacity.CPU ? capacity.CPU : '-')+' '+ + ''+Locale.tr("CPU")+''+ + ''+memory_value+''+ + ' '+ + ''+memory_unit+' '+ + ''+Locale.tr("MEMORY")+''+ + '0.00 '+ + ''+Locale.tr("COST")+' / ' + Locale.tr("HOUR") + ''+ + ''+ ''+ '
'+ ''+ ''+ - '
'+ - '
'+ - '
'+ - '
'+ - '
'+ - ''+(capacity.CPU ? capacity.CPU : '-')+''+ - '
'+ - ''+Locale.tr("CPU")+''+ - '
'+ - '
'+ - ''+memory_value+''+ - ' '+ - ''+memory_unit+''+ - '
'+ - ''+Locale.tr("MEMORY")+''+ - '
'+ - ''+ - '
'+ - '
'+ - '
'+ (Config.provision.create_vm.isEnabled("capacity_select") && (capacity.SUNSTONE_CAPACITY_SELECT != "NO") ? '
'+ '
'+ diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs index e2e94fabd8..d8e9f12a77 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs @@ -3,70 +3,82 @@
- -
-
+
+
+ +
+
+
+
+ +
+
+ +
+
-
- +
+
+ +
+
+
+
+ +
+
-
- +
+
+ +
+
+
+
+ +
+
+
- {{#isFeatureEnabled "showback"}} -
- - +
+ {{#isFeatureEnabled "showback"}} +
+ {{tr "Cost"}} +
+ + +
+
+ + +
+
+ + +
+
+ {{/isFeatureEnabled}}
-
- {{/isFeatureEnabled}} -
-
-
- -
-
-
-
- -
-
- {{#isFeatureEnabled "showback"}} -
- - -
-
- {{/isFeatureEnabled}} -
-
-
- -
-
-
-
- -
-
-