X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/b812ecb815635726dca92b6c3725ac0a4bb86ab6..14f651c500c554436376dd5d10450703478669b6:/code/templates/list.tmpl diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index 71f36ea..e9200dd 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -1,5 +1,6 @@ #from skeleton import skeleton #extends skeleton +#import datetime #def title @@ -19,36 +20,75 @@ 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('cdrom', $err) @@ -57,7 +97,9 @@ $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')$vmTypeList($defaults.type)HVM/ParaVM#slurp +#filter None +$helppopup('HVM/ParaVM')#slurp +#end filter + +#filter None +$vmTypeList($defaults.type) +#end filter +
Autoinstall$helppopup('autoinstall')$autoList($defaults.cdrom, "document.getElementById('cd_or_auto_auto').checked = true;document.getElementById('cdromlist').value = ''") + Autoinstall#slurp +#filter None +$helppopup('Autoinstall')#slurp +#end filter + +#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; root pw is 'password'.) +#end filter
Boot CD$cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''") +#filter None +$cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''") +#end filter +
Owner
@@ -66,6 +108,20 @@ $errorRow('cdrom', $err) #def machineRow($machine) + +
+ + + +
+ $machine.name ${machine.memory}M $machine.owner @@ -78,45 +134,57 @@ $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 MemoryOwner$helppopup('owner')Administrator$helppopup('administrator')Owner#slurp +#filter None +$helppopup('Owner')#slurp +#end filter +Administrator#slurp +#filter None +$helppopup('Administrator')#slurp +#end filter + IP Uptime VNC
+ + #end def @@ -127,7 +195,11 @@ $has_vnc[$machine] #end if

refresh

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