\
\
\
@@ -84,6 +85,7 @@ var create_host_tmpl =
\
\
\
+ \
\
\
\
@@ -105,6 +107,7 @@ var create_host_tmpl =
\
\
\
+ \
\
\
\
@@ -121,6 +124,27 @@ var create_host_tmpl =
\
\
\
+
\
\
\
\
@@ -938,8 +962,19 @@ function setupCreateHostDialog(){
$("#im_mad", $create_host_dialog).val(this.value).change();
if (this.value == "custom") {
+ $(".vcenter_credentials", $create_host_dialog).hide();
+ $("#vnm_mads", $create_host_dialog).show();
+ $("#create_host_submit", $create_host_dialog).removeAttr("disabled");
$(".drivers", $create_host_dialog).show();
+ } else if (this.value == "vcenter") {
+ $("#vnm_mads", $create_host_dialog).hide();
+ $(".vcenter_credentials", $create_host_dialog).show();
+ $("#create_host_submit", $create_host_dialog).attr("disabled", "disabled");
+ $(".drivers", $create_host_dialog).hide();
} else {
+ $(".vcenter_credentials", $create_host_dialog).hide();
+ $("#vnm_mads", $create_host_dialog).show();
+ $("#create_host_submit", $create_host_dialog).removeAttr("disabled");
$(".drivers", $create_host_dialog).hide();
}
})