bug 8208: Added first addHost dialog to take into account baremetal requirements in the resource page.

- Standardized the addHost optional parameters for baremetal.
This commit is contained in:
will 2011-03-17 16:38:08 -07:00
parent ae549ed4d1
commit b8a2b766da
2 changed files with 4 additions and 3 deletions

View File

@ -975,8 +975,8 @@
<li>
<label input_group="general">
Tags:</label>
<input class="text" type="text" name="host_baremetal_tags" id="host_baremetal_tags" />
<div id="host_baremetal_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
<input class="text" type="text" name="host_tags" id="host_tags" />
<div id="host_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
</div>
</li>
</ol>

View File

@ -912,7 +912,8 @@ function initAddHostShortcut() {
array1.push("&hypervisor="+hypervisor);
var clustertype = clusterObj.clustertype;
array1.push("&clustertype=" + clustertype);
array1.push("&clustertype=" + clustertype);
array1.push("&hosttags=" + todb(trim($thisDialog.find("#host_tags").val())));
if(hypervisor == "VMware") {
var username = trim($thisDialog.find("#host_vcenter_username").val());