Added the name of machine that is being deleted
[invirt/packages/invirt-web.git] / code / templates / info.mako
index 0d1b66b..5423f3d 100644 (file)
@@ -11,6 +11,11 @@ Info on ${machine.name}
   % for key, value in fields:
   <tr><td>${key}:</td><td>${value}</td></tr>
   % endfor
+  % if on:
+   % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]:
+    <tr><td>CPU history:</td><td><img src="${config.monitoring[0].baseuri}usage.cgi?type=cpu;uuid=${machine.uuid}" alt="Domain CPU usage" /></td></tr>
+   % endif
+  % endif
 </table>
 </%def>
 
@@ -45,9 +50,8 @@ Info on ${machine.name}
        % endif
   </div>
   <div>
-       ${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM?');"''')}
+       ${command_button("Delete VM", "delete", extra="onclick=\"return confirm('Are you sure that you want to delete this VM (\\\'" + machine.name + "\\\')?');\"")}
   </div>
-</form>
 </%def>
 
 <%def name="modifyForm()">