#from skeleton import skeleton
+#from invirt.config import structs as config
#extends skeleton
#import datetime
<tr>
<td>Autoinstall#slurp
#filter None
-$helppopup('Autoinstall')#slurp
+$helppopup('Autoinstalls')#slurp
#end filter
</td>
- <td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto">
+ <td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto"
+ onchange="\$('cdromlist').value = ''; \$('vmtype-linux').checked = true">
#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>
<tr>
<td>Boot CD</td>
- <td><input type="radio" name="cd_or_auto" id="cd_or_auto_cd" checked>
+ <td><input type="radio" name="cd_or_auto" id="cd_or_auto_cd" checked="checked"
+ onchange="\$('autoinstalllist').value = ''; \$('vmtype-linux-hvm').checked = true">
#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>
#if $machine.uptime then 'on' else 'off'
" name="action" value="#slurp
#if $machine.uptime then 'Power off' else 'Power on'
-"/>
+"#slurp
+#if $machine.uptime
+ onclick="return confirm('Are you sure you want to power off this VM?');"
+#end if
+/>
</form>
</td>
<td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>
#def body
-<p style="font-size: 125%;">SIPB Virtual Servers is an <strong>alpha service</strong>. <a href="/static/about.html">What does this mean?</a></p>
+<p style="font-size: 125%;"><a href="http://${config.web.hostname}">What is XVM?</a></p>
#if not $machines
<p>You don't currently control any VMs.</p>
#end if