<label>
<input #slurp
#if $default == $vmtype[0] then 'checked' else ''
- type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input>
+ type="radio" name="vmtype" id="vmtype-${vmtype[0]}" value="${vmtype[0]}">${vmtype[1]}</input>
</label>
#end for
#end def
</td>
<td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto">
#filter None
-$autoList($defaults.cdrom, "document.getElementById('cd_or_auto_auto').checked = true;document.getElementById('cdromlist').value = ''")
- (experimental; 1-2 minutes, and you have a machine with empty root password.)
+$autoList($defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")
+ (experimental; 2-3 minutes, and you have a machine with empty root password.)
#end filter
</input>
</tr>
<td>Boot CD</td>
<td><input type="radio" name="cd_or_auto" id="cd_or_auto_cd" checked>
#filter None
-$cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''")
+$cdromList($defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")
#end filter
</td>
</input>