-<form action="command" method="POST">
- <input type="hidden" name="back" value="info"/>
- <input type="hidden" name="machine_id" value="${machine.machine_id}"/>
+<%def name="command_button(title, value, cdrom=False, extra='')">
+<form action="machine/${machine.machine_id}/command/${value}" method="POST">
+ <input type="hidden" name="back" value="info" />
+ <input type="submit" class="button" name="action" value="${title}" ${extra | n}/>
+% if cdrom:
+ Boot CD: ${self.fn.cdromList()}
+% endif
+</form>
+</%def>