diff --git a/src/sunstone/public/js/plugins/vnets-tab.js b/src/sunstone/public/js/plugins/vnets-tab.js
index 21c6150945..cb0df258d2 100644
--- a/src/sunstone/public/js/plugins/vnets-tab.js
+++ b/src/sunstone/public/js/plugins/vnets-tab.js
@@ -87,11 +87,11 @@ var create_vn_tmpl =
\
\
\
- \
+ \
\
- \
+ \
\
- \
+ \
\
\
\
@@ -280,27 +280,7 @@ var vnet_actions = {
error: onError,
notify: false,
},
-/*
- "Network.modifyleases" : {
- type: "custom",
- call: function(action,obj){
- nodes = getSelectedNodes(dataTable_vNetworks);
- $.each(nodes,function(){
- Sunstone.runAction(action,this,obj);
- });
- }
- },
- "Network.addleases_dialog" : {
- type: "custom",
- call: popUpAddLeaseDialog
- },
-
- "Network.rmleases_dialog" : {
- type: "custom",
- call: popUpRemoveLeaseDialog
- },
-*/
"Network.chown" : {
type: "multiple",
call: OpenNebula.Network.chown,
@@ -390,21 +370,7 @@ var vnet_buttons = {
tip: "Select the new group:",
condition: mustBeAdmin,
},
-/*
- "action_list" : {
- type: "select",
- actions: {
- "Network.addleases_dialog" : {
- type: "action",
- text: "Add lease"
- },
- "Network.rmleases_dialog" : {
- type: "action",
- text: "Remove lease"
- }
- }
- },
-*/
+
"Network.delete" : {
type: "action",
text: "Delete"
@@ -416,10 +382,10 @@ var vnet_info_panel = {
title: "Virtual network information",
content: ""
},
- "vnet_template_tab" : {
- title: "Virtual network template",
+ "vnet_leases_tab" : {
+ title: "Lease management",
content: ""
- }
+ },
}
var vnets_tab = {
@@ -547,31 +513,34 @@ function updateVNetworkInfo(request,vn){
\
';
- info_tab_content += printLeases(vn_info);
+ info_tab_content += '\
+
\
+ Virtual Network template (attributes) |
'+
+ prettyPrintJSON(vn_info.TEMPLATE)+
+ '
'
+
+
+ var leases_tab_content = printLeases(vn_info);
var info_tab = {
title: "Virtual Network information",
content: info_tab_content
- }
+ };
- var template_tab = {
- title: "Virtual Network template",
- content:
- '\
- Virtual Network template |
'+
- prettyPrintJSON(vn_info.TEMPLATE)+
- '
'
- }
+ var leases_tab = {
+ title: "Lease management",
+ content: leases_tab_content
+ };
Sunstone.updateInfoPanelTab("vnet_info_panel","vnet_info_tab",info_tab);
- Sunstone.updateInfoPanelTab("vnet_info_panel","vnet_template_tab",template_tab);
+ Sunstone.updateInfoPanelTab("vnet_info_panel","vnet_leases_tab",leases_tab);
Sunstone.popUpInfoPanel("vnet_info_panel");
}
function printLeases(vn_info){
- var html ='