X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/dce58e66ce47f06e84bf7b60ad88ac729f264971..74cf12ca4c1ba056483885a9b3b0d5c86014f1d1:/code/templates/list.tmpl diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index 249541e..5c0bc74 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,16 +35,10 @@ $errorRow('memory', $err) GiB (${"%0.1f" % ($max_disk-0.05)} max) $errorRow('disk', $err) - - HVM/ParaVM$helppopup('hvm_paravm') - -#for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM')) - $name -#end for - - + + HVM/ParaVM$helppopup('hvm_paravm') + $vmTypeList($defaults.type) + $errorRow('vmtype', $err) Boot CD @@ -84,14 +78,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 @@ -111,14 +103,15 @@ $has_vnc[$machine] #def machineList($machines) - - - - - - - - + + + + + + + + + #for $machine in $machines: $machineRow($machine) #end for @@ -127,17 +120,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