X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/59b8dc4f1f1a59dc8318ca65569101df73a6ef13..2f10c0de042a95eb53a88b6ae976d6dd9360988f:/code/templates/list.tmpl diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index dc4ad47..cf59937 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -1,5 +1,7 @@ #from skeleton import skeleton +#from invirt.config import structs as config #extends skeleton +#import datetime #def title @@ -19,58 +21,112 @@ VM List
+#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 +#filter None +$errorRow('autoinstall', $err) +#end filter - - + + -$errorRow('vmtype', $err) - + + $errorRow('cdrom', $err) - - - - $errorRow('cdrom', $err) +#filter None $errorRow('owner', $err) +#end filter
Name.${config.dns.domains[0]}
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#slurp +#filter None +$helppopup('HVM/ParaVM')#slurp +#end filter + +#filter None +$vmTypeList($defaults.type) +#end filter +
HVM/ParaVM$helppopup('hvm_paravm') -#for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM')) - $name -#end for - Autoinstall#slurp +#filter None +$helppopup('Autoinstalls')#slurp +#end filter + +#filter None +$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 +
Boot CD$cdromList($cdroms, $defaults.cdrom) +#filter None +$cdromList($defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true") +#end filter +
Clone image? - (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.) -
Owner
- +
+ Windows notes: #slurp +#filter None +$helppopup('Windows')#slurp +#end filter
#end if #end def #def machineRow($machine) + +
+ + + +
+ $machine.name ${machine.memory}M $machine.owner @@ -83,56 +139,72 @@ $errorRow('cdrom', $err) #end if #slurp #if $machine.uptime -$machine.uptime#slurp +${datetime.timedelta(seconds=int(machine.uptime))}#slurp #end if #slurp #if $has_vnc[$machine] == True Console#slurp #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
Name MemoryOwnerAdministratorOwner#slurp +#filter None +$helppopup('Owner')#slurp +#end filter +Administrator#slurp +#filter None +$helppopup('Administrator')#slurp +#end filter + IP Uptime VNC
+ + #end def #def body -

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

+

What is XVM?

#if not $machines

You don't currently control any VMs.

#end if

refresh

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