<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?');"
<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?');"