Set the default vm type
[invirt/packages/invirt-web.git] / code / templates / functions.tmpl
index e1ae309..635f5db 100644 (file)
@@ -36,7 +36,7 @@ $databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.de
 #for $vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), )
 <label>
    <input #slurp
-#if $default == $vmtype then 'checked' else ''
+#if $default == $vmtype[0] then 'checked' else ''
  type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input>
 </label>
 #end for