Revision ea752c98

View differences:

src/sunstone/public/js/plugins/templates-tab.js
923 923
function updateTemplateInfo(request,template){
924 924
    var template_info = template.VMTEMPLATE;
925 925
    var info_tab = {
926
        title: "Template information",
927
        content:        
928
        '<table id="info_template_table" class="info_table">\
926
        title: "Information",
927
        content: '<table id="info_template_table" class="info_table">\
929 928
			<thead>\
930 929
				<tr><th colspan="2">Template "'+template_info.NAME+'" information</th></tr>\
931 930
			</thead>\
......
945 944
				<td class="key_td">Public</td>\
946 945
				<td class="value_td">'+(parseInt(template_info.PUBLIC) ? "yes" : "no")+'</td>\
947 946
			</tr>\
948
		</table>\
949
        <table id="template_template_table" class="info_table">\
950
		<thead><tr><th colspan="2">Template</th></tr></thead>'+
951
		prettyPrintJSON(template_info.TEMPLATE)+
952
		'</table>'
953
    }
954
    
955
    
947
		</table>'
948
    };
949
    var template_tab = {
950
        title: "Template",
951
        content: '<table id="template_template_table" class="info_table">\
952
        <thead><tr><th colspan="2">Template</th></tr></thead>'+
953
        prettyPrintJSON(template_info.TEMPLATE)+
954
        '</table>'
955
    };
956

  
957

  
956 958
    Sunstone.updateInfoPanelTab("template_info_panel","template_info_tab",info_tab);
957
        
959
    Sunstone.updateInfoPanelTab("template_info_panel","template_template_tab",template_tab);
960

  
958 961
    Sunstone.popUpInfoPanel("template_info_panel");
959 962

  
960 963
}

Also available in: Unified diff