%page expression_filter="h"/>
<%inherit file="skeleton.mako" />
<%def name="title()">
Info on ${machine.name}
%def>
<%def name="infoTable()">
Info
% for key, value in fields:
${key}: | ${value} |
% endfor
%def>
<%def name="commands()">
% if on:
% if not machine.type.hvm:
Console access: Web Terminal or type
ssh ${machine.name}@${config.console.hostname}
on Athena. (more info)
% elif has_vnc:
Get Console or Web Terminal
% else:
VNC console not enabled; still booting?
% endif
% endif
<%def name="command_button(title, value, cdrom=False, extra='')">
%def>
% 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
${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM?');"''')}
%def>
<%def name="modifyForm()">
% if err:
We had a problem with your request:
% elif new_machine:
Successfully modified.
% endif
% if on:
(To edit ram, disk size, or machine name, turn off the machine first.)
% endif
%def>
${infoTable()}
Commands
${commands()}
Settings
${modifyForm()}