From 4d9af711362ba764578eebb8ee3f52126490fe18 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Mon, 17 Nov 2008 05:21:49 -0500 Subject: [PATCH] Switch to HVM if user selects a CD, and ParaVM if user selects an autoinstaller svn path=/trunk/packages/invirt-web/; revision=1693 --- code/templates/functions.tmpl | 2 +- code/templates/list.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/templates/functions.tmpl b/code/templates/functions.tmpl index 3daf6ad..86dc772 100644 --- a/code/templates/functions.tmpl +++ b/code/templates/functions.tmpl @@ -37,7 +37,7 @@ $databaseList(sorted($database.Autoinstall.query(), key=lambda x: x.description) #end for #end def diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index 43de904..5207728 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -78,8 +78,8 @@ $helppopup('Autoinstall')#slurp #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 @@ -87,7 +87,7 @@ $autoList($defaults.cdrom, "document.getElementById('cd_or_auto_auto').checked = Boot CD #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 -- 1.7.9.5