Changeset 1693 for trunk/packages


Ignore:
Timestamp:
Nov 17, 2008, 5:21:49 AM (16 years ago)
Author:
broder
Message:

Switch to HVM if user selects a CD, and ParaVM if user selects an
autoinstaller

Location:
trunk/packages/invirt-web/code/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/templates/functions.tmpl

    r1318 r1693  
    3838   <input #slurp
    3939#if $default == $vmtype[0] then 'checked' else ''
    40  type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input>
     40 type="radio" name="vmtype" id="vmtype-${vmtype[0]}" value="${vmtype[0]}">${vmtype[1]}</input>
    4141</label>
    4242#end for
  • trunk/packages/invirt-web/code/templates/list.tmpl

    r1661 r1693  
    7979          <td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto">
    8080#filter None
    81 $autoList($defaults.cdrom, "document.getElementById('cd_or_auto_auto').checked = true;document.getElementById('cdromlist').value = ''")
    82               (experimental; 1-2 minutes, and you have a machine with empty root password.)
     81$autoList($defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")
     82              (experimental; 2-3 minutes, and you have a machine with empty root password.)
    8383#end filter
    8484          </input>
     
    8888          <td><input type="radio" name="cd_or_auto" id="cd_or_auto_cd" checked>
    8989#filter None
    90 $cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''")
     90$cdromList($defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")
    9191#end filter
    9292</td>
Note: See TracChangeset for help on using the changeset viewer.