X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/f434ce1c604006bca6094e894311055581524b0a..97a1b45c11a71728664e994cbcdca4801baa8635:/code/templates/info.mako diff --git a/code/templates/info.mako b/code/templates/info.mako index 5af29bb..b98e7c2 100644 --- a/code/templates/info.mako +++ b/code/templates/info.mako @@ -26,24 +26,26 @@ Info on ${machine.name} VNC console not enabled; still booting? % endif % endif -
- - +<%def name="command_button(title, value, cdrom=False, extra='')"> + + + +% if cdrom: + Boot CD: ${self.fn.cdromList()} +% endif +
+
% if on: - - - + ${command_button("Power off", "destroy")} + ${command_button("Shutdown", "shutdown")} + ${command_button("Reboot", "reboot", cdrom=True)} % else: - + ${command_button("Power on", "create", cdrom=True)} % endif
- Boot CD: -${self.fn.cdromList()} -
-
- + ${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM?');"''')}