' +
- '
'+
- ''+
- '
'+
- '
'+
- '
'
return html;
@@ -611,9 +612,15 @@ function setup_capacity_tab_content(capacity_section) {
capacity_section.on("change", "#LOGO", function(){
$("#template_create_logo",capacity_section).show();
- $("#template_create_logo",capacity_section).html('
'+
+ $("#template_create_logo",capacity_section).html(''+
'
'+
- '');
+ '');
+ });
+
+ capacity_section.on("change", "input[name='hypervisor']", function(){
+ var context = $(this).closest("#create_template_form_wizard");
+ $(".hypervisor", context).hide();
+ $("." + this.value, context).show();
});
setup_capacity_inputs(capacity_section);
@@ -623,14 +630,6 @@ function setup_capacity_tab_content(capacity_section) {
function setup_capacity_inputs(capacity_section) {
setupTips(capacity_section);
- // Hide advanced options
- $('.advanced',capacity_section).hide();
-
- $('#advanced_capacity',capacity_section).click(function(){
- $('.advanced',capacity_section).toggle();
- return false;
- });
-
// Define the cpu slider
var cpu_input = $( "#CPU", capacity_section);
@@ -889,7 +888,7 @@ function generate_disk_tab_content(str_disk_tab_id, str_datatable_id){
''+
'
'+
'
'+
+ '
'+
'
'+
'