- Timestamp:
- Dec 20, 2009, 9:45:14 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy-rebased/code/templates
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/templates/info.mako
r2683 r2684 29 29 <%def name="command_button(title, value, cdrom=False, extra='')"> 30 30 <form action="machine/${machine.machine_id}/command/${value}" method="POST"> 31 <input type="hidden" name="back" value=" machine/${machine.machine_id}/info" />31 <input type="hidden" name="back" value="info" /> 32 32 <input type="submit" class="button" name="action" value="${title}" ${extra | n}/> 33 33 % if cdrom: -
package_branches/invirt-web/cherrypy-rebased/code/templates/list.mako
r2682 r2684 85 85 <tr> 86 86 <td rowspan="2"> 87 <form action=" command" method="post">87 <form action="machine/${machine.machine_id}/command/${'shutdown' if machine.uptime else 'create'}" method="post"> 88 88 <input type="hidden" name="back" value="list"/> 89 89 <input type="hidden" name="machine_id" 90 90 value="${machine.machine_id}"/> 91 <input type="submit" class="power ${'on' if machine.uptime else 'off'}" name="action" value="${' Power off' if machine.uptime else 'Power on'}"\91 <input type="submit" class="power ${'on' if machine.uptime else 'off'}" name="action" value="${'Shutdown' if machine.uptime else 'Power on'}"\ 92 92 % if machine.uptime: 93 93 onclick="return confirm('Are you sure you want to power off this VM?');"
Note: See TracChangeset
for help on using the changeset viewer.