Adding support to indicate hypervisor when registering ISOs

This commit is contained in:
will 2010-09-17 22:19:47 -07:00 committed by edison
parent 478f41ec48
commit 031c6fc280
2 changed files with 11 additions and 2 deletions

View File

@ -590,6 +590,14 @@ long milliseconds = new Date().getTime();
<option value="false">No</option>
</select>
</li>
<li>
<label for="add_iso_hypervisor">Hypervisor:</label>
<select class="select" name="add_iso_hypervisor" id="add_iso_hypervisor">
<option value='VmWare'>VMware ESX</option>
<option value='XenServer'>Citrix XenServer</option>
<option value='KVM'>KVM</option>
</select>
</li>
<li>
<label for="add_iso_os_type">OS Type:</label>
<select class="select" name="add_iso_os_type" id="add_iso_os_type">

View File

@ -753,12 +753,13 @@ function showTemplatesTab() {
//var isPublic = thisDialog.find("#add_iso_public").val();
var isPublic = "false"; //default to private for now
var osType = thisDialog.find("#add_iso_os_type").val();
var bootable = thisDialog.find("#add_iso_bootable").val();
var bootable = thisDialog.find("#add_iso_bootable").val();
var hypervisor = thisDialog.find("#add_iso_hypervisor").val();
thisDialog.dialog("close");
$.ajax({
data: createURL("command=registerIso&name="+encodeURIComponent(name)+"&displayText="+encodeURIComponent(desc)+"&url="+encodeURIComponent(url)+"&zoneId="+zoneId+"&isPublic="+isPublic+"&osTypeId="+osType+"&bootable="+bootable+"&response=json"),
data: createURL("command=registerIso&name="+encodeURIComponent(name)+"&displayText="+encodeURIComponent(desc)+"&url="+encodeURIComponent(url)+"&zoneId="+zoneId+"&isPublic="+isPublic+"&osTypeId="+osType+"&bootable="+bootable+"&hypervisor="+hypervisor+"&response=json"),
dataType: "json",
success: function(json) {
var result = json.registerisoresponse;