% else:
<form action="machine/${machine.machine_id}/command/${'shutdown' if on else 'create'}" method="post">
<input type="hidden" name="back" value="list"/>
- <input type="hidden" name="machine_id"
- value="${machine.machine_id}"/>
<input type="submit" class="power ${'on' if on else 'off'}" name="action" value="${'Shutdown' if on else 'Power on'}"\
% if on:
onclick="return confirm('Are you sure you want to power off this VM?');"