Changed HTML for info UI to stop using tables for the buttons/inputs. 0.0.18
authorEdward Z. Yang <ezyang@mit.edu>
Sun, 1 Feb 2009 05:44:55 +0000 (00:44 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Sun, 1 Feb 2009 05:44:55 +0000 (00:44 -0500)
svn path=/trunk/packages/invirt-web/; revision=2077

code/templates/info.tmpl

index b090906..d872fce 100644 (file)
@@ -29,26 +29,24 @@ Info on $machine.name
 <form action="command" method="POST">
   <input type="hidden" name="back" value="info"/>
   <input type="hidden" name="machine_id" value="$machine.machine_id"/>
-  <table>
-      <tr>
+  <div>
        #if $on
-       <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>
+       <button type="submit" class="button" name="action" value="Power off">Power off (hard)</button>
+       <button type="submit" class="button" name="action" value="Shutdown">Shut down</button>
+       <input type="submit" class="button" name="action" value="Reboot"/>
        #else
-       <td><input type="submit" class="button" name="action" value="Power on"/></td>
+       <input type="submit" class="button" name="action" value="Power on"/>
        #end if
-      <td>Boot CD:</td>
-      <td>#slurp
+  </div>
+  <div>
+    Boot CD:
 #filter None
 $cdromList()#slurp
 #end filter
-</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>
-    </tr>
-  </table>
+  </div>
+  <div>
+      <input type="submit" class="button" name="action" value="Delete VM" onclick="return confirm('Are you sure that you want to delete this VM?');"/>
+  </div>
 </form>
 #end def