+ <td rowspan="2">
+ <form action="command" method="post">
+ <input type="hidden" name="back" value="list"/>
+ <input type="hidden" name="machine_id"
+ value="$machine.machine_id"/>
+<input type="submit" class="power #slurp
+#if $machine.uptime then 'on' else 'off'
+" name="action" value="#slurp
+#if $machine.uptime then 'Power off' else 'Power on'
+"#slurp
+#if $machine.uptime
+ onclick="return confirm('Are you sure you want to power off this VM?');"
+#end if
+/>
+ </form>
+ </td>