From fc6086067cb4f71e255633231c5d0e9936db41ef Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 22 Aug 2011 13:37:39 -0700 Subject: [PATCH] bug 11202: cloudStack - Service Offering page - add Network Rate in grid. --- ui/jsp/serviceoffering.jsp | 20 +++++++++++++++----- ui/scripts/cloud.core.serviceoffering.js | 3 ++- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ui/jsp/serviceoffering.jsp b/ui/jsp/serviceoffering.jsp index 464fc77e21a..763e4c6cbdd 100644 --- a/ui/jsp/serviceoffering.jsp +++ b/ui/jsp/serviceoffering.jsp @@ -125,6 +125,16 @@ dictionary = {
+
+
+ :
+
+
+
+
+
+
+
:
@@ -135,7 +145,7 @@ dictionary = {
-
+
:
@@ -146,7 +156,7 @@ dictionary = {
-
+
:
@@ -157,7 +167,7 @@ dictionary = {
-
+
:
@@ -168,7 +178,7 @@ dictionary = {
-
+
:
@@ -181,7 +191,7 @@ dictionary = {
-
+
:
diff --git a/ui/scripts/cloud.core.serviceoffering.js b/ui/scripts/cloud.core.serviceoffering.js index d02cba6254d..0bfd5e55d92 100644 --- a/ui/scripts/cloud.core.serviceoffering.js +++ b/ui/scripts/cloud.core.serviceoffering.js @@ -331,7 +331,8 @@ function serviceOfferingJsonToDetailsTab() { $thisTab.find("#storagetype").text(fromdb(jsonObj.storagetype)); $thisTab.find("#cpu").text(jsonObj.cpunumber + " x " + convertHz(jsonObj.cpuspeed)); - $thisTab.find("#memory").text(convertBytes(parseInt(jsonObj.memory)*1024*1024)); + $thisTab.find("#memory").text(convertBytes(parseInt(jsonObj.memory)*1024*1024)); + $thisTab.find("#network_rate").text(jsonObj.networkrate); setBooleanReadField(jsonObj.offerha, $thisTab.find("#offerha")); setBooleanEditField(jsonObj.offerha, $thisTab.find("#offerha_edit"));