X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e37dd15bbf8683bab8454ea0eec8e9968ce982b2..0db5d84820273e5e6e202450d873acc133e4cf59:/code/templates/list.tmpl?ds=sidebyside diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index 6e06c53..71f36ea 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -3,14 +3,14 @@ #def title -List of your VMs +VM List #end def -#def createTable() +#def createForm() #if $cant_add_vm

$cant_add_vm

#else -

Create a new VM:

+

Create a new VM

#if $err

We had a problem with your request:

#else if $varExists('new_machine') @@ -35,22 +35,24 @@ $errorRow('memory', $err) GiB (${"%0.1f" % ($max_disk-0.05)} max) $errorRow('disk', $err) + + HVM/ParaVM$helppopup('hvm_paravm') + $vmTypeList($defaults.type) + +$errorRow('vmtype', $err) - HVM/ParaVM$helppopup('hvm_paravm') - -#for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM')) - $name -#end for - + Autoinstall$helppopup('autoinstall') + $autoList($defaults.cdrom, "document.getElementById('cd_or_auto_auto').checked = true;document.getElementById('cdromlist').value = ''") + (experimental; 1-2 minutes, and you have a machine; root pw is 'password'.) + -$errorRow('vmtype', $err) Boot CD - $cdromList($cdroms, $defaults.cdrom) + $cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''") + $errorRow('cdrom', $err) +$errorRow('cdrom', $err) Owner @@ -77,14 +79,12 @@ $errorRow('cdrom', $err) #slurp #if $machine.uptime $machine.uptime#slurp -#else -Off#slurp #end if #slurp #if $has_vnc[$machine] == True Console#slurp -#else +#else if $has_vnc[$machine] != 'Off' $has_vnc[$machine] #end if @@ -104,14 +104,15 @@ $has_vnc[$machine] #def machineList($machines) - - - - - - - - + + + + + + + + + #for $machine in $machines: $machineRow($machine) #end for @@ -120,17 +121,13 @@ $has_vnc[$machine] #def body -

Note: sipb-xen is a very alpha service. What does this mean?

+

SIPB Virtual Servers is an alpha service. What does this mean?

#if not $machines

You don't currently control any VMs.

-#else -

You have the following VMs:

#end if

refresh

$machineList($machines)
-
-$createTable() -
+$createForm() #end def
NameMemoryOwnerAdministratorIPUptimeVNCNameMemoryOwner$helppopup('owner')Administrator$helppopup('administrator')IPUptimeVNC