From 6c45b92a68f47d47a21703f91a033e6374327177 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 11 Jan 2011 16:15:40 -0800 Subject: [PATCH] bug 7861: secondary storage page - implement details tab. --- ui/jsp/secondarystorage.jsp | 62 ++++++++++++++++++++++- ui/scripts/cloud.core.secondarystorage.js | 11 +++- 2 files changed, 71 insertions(+), 2 deletions(-) diff --git a/ui/jsp/secondarystorage.jsp b/ui/jsp/secondarystorage.jsp index 63071e8ac5e..1d040cc818e 100644 --- a/ui/jsp/secondarystorage.jsp +++ b/ui/jsp/secondarystorage.jsp @@ -72,7 +72,67 @@
- + +
+
+
+ <%=t.t("zone")%>:
+
+
+
+
+
+
+
+
+
+ <%=t.t("type")%>:
+
+
+
+
+
+
+
+
+
+ <%=t.t("ip.address")%>:
+
+
+
+
+
+
+
+
+
+ <%=t.t("state")%>:
+
+
+
+
+
+
+
+
+
+ <%=t.t("version")%>:
+
+
+
+
+
+
+
+
+
+ <%=t.t("last.disconnected")%>:
+
+
+
+
+
+
diff --git a/ui/scripts/cloud.core.secondarystorage.js b/ui/scripts/cloud.core.secondarystorage.js index 7d6e8733159..52c63384170 100644 --- a/ui/scripts/cloud.core.secondarystorage.js +++ b/ui/scripts/cloud.core.secondarystorage.js @@ -72,7 +72,16 @@ function secondaryStorageJsonToDetailsTab() { $thisTab.find("#id").text(fromdb(jsonObj.id)); $thisTab.find("#grid_header_title").text(fromdb(jsonObj.name)); $thisTab.find("#name").text(fromdb(jsonObj.name)); - + + $thisTab.find("#zonename").text(fromdb(jsonObj.zonename)); + $thisTab.find("#type").text(jsonObj.type); + $thisTab.find("#ipaddress").text(jsonObj.ipaddress); + + setHostStateInRightPanel(fromdb(jsonObj.state), $thisTab.find("#state")) + + $thisTab.find("#version").text(jsonObj.version); + setDateField(jsonObj.disconnected, $thisTab.find("#disconnected")); + //actions *** var $actionLink = $thisTab.find("#action_link"); $actionLink.bind("mouseover", function(event) {