Update cache for machines on their modification.
[invirt/packages/invirt-web.git] / code / templates / info.tmpl
index 26d7a24..fa815ca 100644 (file)
@@ -6,7 +6,7 @@ Info on $machine.name
 #end def
 
 #def infoTable()
-<p>Info on ${machine.name}:</p>
+<h2>Info</h2>
 <table>
   #for $key, $value in $fields
   <tr><td>$key:</td><td>$value</td></tr>
@@ -20,12 +20,12 @@ Info on $machine.name
   <input type="hidden" name="machine_id" value="$machine.machine_id"/>
   <table>
     
-    <tr><td>
+    <tr><td colspan=3>
        #if $on
        #if $has_vnc
-       <a href="vnc?machine_id=$machine.machine_id">Console</a>
+       <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
        #else
-       VNC is not enabled
+       VNC console not enabled; still booting?
        #end if
        #else
 
@@ -33,14 +33,14 @@ Info on $machine.name
     </td></tr>
       <tr>
        #if $on
-       <td><input type="submit" class="button" name="action" value="Power off"/></td>
-       <td><input type="submit" class="button" name="action" value="Shutdown"/></td>
+       <td><button type="submit" class="button" name="action" value="Power off">Power off (hard)</button></td>
+       <td><button type="submit" class="button" name="action" value="Shutdown">Shut down</button></td>
        <td><input type="submit" class="button" name="action" value="Reboot"/></td>
        #else
        <td><input type="submit" class="button" name="action" value="Power on"/></td>
        #end if
       <td>Boot CD:</td>
-      <td>$cdromList($cdroms)</td>
+      <td>$cdromList()</td>
   </tr>
     <tr>
       <td><input type="submit" class="button" name="action" value="Delete VM" onclick="return confirm('Are you sure that you want to delete this VM?');"/></td>
@@ -58,7 +58,6 @@ Info on $machine.name
 #if $on
 (To edit ram, disk size, or machine name, turn off the machine first.)
 #end if
-</p>
 <form action="modify" method="POST">
   <input type="hidden" name="machine_id" value="$defaults.machine_id"/>
   <table>
@@ -71,6 +70,10 @@ $errorRow('contact', $err)
 #if not $on
     <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/></td></tr>
 $errorRow('name', $err)
+    <tr>
+      <td>HVM/ParaVM$helppopup('hvm_paravm')</td>
+      <td>$vmTypeList($defaults.type)</td>
+    </tr>
     <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$defaults.memory"/>MiB (max $max_mem)</td></tr>
 $errorRow('memory', $err)
     <tr><td>Disk:</td><td><input type="text" size=3 name="disk" value="$defaults.disk"/>GiB (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr>
@@ -86,16 +89,15 @@ $errorRow('disk', $err)
 #end def
 
 #def body
-<h1>Info</h1>
 <div id="info">
   $infoTable()
 </div>
 
-<p>Commands:</p>
+<h2>Commands</h2>
 <div id="commands">
   $commands()
 </div>
-<p>Change settings:
+<h2>Settings</h2>
 <div id="modify">
   $modifyForm()
 </div>