X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/eb9adb539fb47ab4b5c4e859cf119b554b9116cb..82e2588bdcedd33f4b4be714490d62359681d4db:/code/templates/list.tmpl diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index b6e9e33..61eafdb 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -1,16 +1,17 @@ #from skeleton import skeleton #extends skeleton +#import datetime #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') @@ -19,49 +20,96 @@ List of your VMs
+#filter None $errorRow('create', $err) +#end filter - + +#filter None $errorRow('name', $err) +#end filter + + + + +#filter None +$errorRow('description', $err) +#end filter +#filter None $errorRow('memory', $err) +#end filter - + +#filter None $errorRow('disk', $err) - - - - +#end filter + + + + +#filter None $errorRow('vmtype', $err) +#end filter + + +#if $can_clone + +#else + +#end if + +#filter None +$errorRow('autoinstall', $err) +#end filter + - + + $errorRow('cdrom', $err) - - - - $errorRow('cdrom', $err) +#filter None $errorRow('owner', $err) +#end filter
Name.xvm.mit.edu
Description
Memory MiB ($max_memory max)
Disk GiB (${"%0.1f" % ($max_disk-0.05)} max) GiB (${"%0.1f" % ($max_disk-0.05)} max)
HVM/ParaVM$helppopup('hvm_paravm') -#for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM')) - $name -#end for -
HVM/ParaVM#slurp +#filter None +$helppopup('HVM/ParaVM')#slurp +#end filter + +#filter None +$vmTypeList($defaults.type) +#end filter +
Clone image? + (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.) + Image cloning is currently disabled for maintenance
Boot CD$cdromList($cdroms, $defaults.cdrom) +#filter None +$cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''") +#end filter +
Clone image? - (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.)
Owner
@@ -70,6 +118,16 @@ $errorRow('cdrom', $err) #def machineRow($machine) + +
+ + + +
+ $machine.name ${machine.memory}M $machine.owner @@ -82,61 +140,72 @@ $errorRow('cdrom', $err) #end if #slurp #if $machine.uptime -$machine.uptime#slurp -#else -Off#slurp +${datetime.timedelta(seconds=int(machine.uptime))}#slurp #end if #slurp #if $has_vnc[$machine] == True Console#slurp -#else +#else if $has_vnc[$machine] != 'Off' +#filter None $has_vnc[$machine] +#end filter #end if - -
- - - -
- + + + $machine.description #end def #def machineList($machines) - +
- - - - - - - - + + + + + + + + + #for $machine in $machines: + #filter None $machineRow($machine) + #end filter #end for
NameMemoryOwnerAdministratorIPUptimeVNCNameMemoryOwner#slurp +#filter None +$helppopup('Owner')#slurp +#end filter +Administrator#slurp +#filter None +$helppopup('Administrator')#slurp +#end filter +IPUptimeVNC
+ + #end def #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

+ #filter None $machineList($machines) + #end filter
-
-$createTable() -
+#filter None +$createForm() +#end filter #end def