Moved sipb-xen-www into a package
[invirt/packages/invirt-web.git] / templates / info.tmpl
diff --git a/templates/info.tmpl b/templates/info.tmpl
deleted file mode 100644 (file)
index 6ac0227..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#from skeleton import skeleton
-#extends skeleton
-
-#def title
-Info on $machine.name
-#end def
-
-
-#def body
-<h1>Info</h1>
-<p>Info on ${machine.name}:</p>
-<table>
-  #for $key, $value in $fields
-  <tr><td>$key:</td><td>$value</td></tr>
-  #end for
-</table>
-
-<p>Commands:</p>
-<form action="command" action="POST">
-  <input type="hidden" name="machine_id" value="$machine.machine_id"/>
-  <table>
-    
-    <tr><td>
-       #if $on
-       #if $has_vnc
-       <a href="vnc?machine_id=$machine.machine_id">Console</a>
-       #else
-       VNC is not enabled
-       #end if
-       #else
-
-       #end if
-    </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><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><select name="cdrom">
-         <option selected value="">None</option>
-         #for $cdrom in $cdroms
-         <option value="$cdrom.cdrom_id">
-           $cdrom.description
-         </option>
-         #end for
-      </select></td>
-  </tr>
-    <tr>
-      <td><input type="submit" class="button" name="action" value="Delete VM"/></td>
-    </tr>
-  </table>
-</form>
-<p>Change settings:
-#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="$machine.machine_id"/>
-  <table>
-    <tr><td>Owner${helppopup("owner")}:</td><td><input type="text" name="owner", value="$machine.owner"/></td></tr>
-    <tr><td>Administrator${helppopup("administrator")}:</td><td><input type="text" name="administrator", value="$machine.administrator"/></td></tr>
-    <tr><td>Contact email:</td><td><input type="text" name="contact" value="$machine.contact"/></td></tr>
-#if $machine.nics
-    <tr><td>Hostname:</td><td><input type="text" name="hostname" value="$machine.nics[0].hostname"/>.servers.csail.mit.edu</td></tr>
-#end if
-#if not $on
-    <tr><td>Machine Name:</td><td><input type="text" name="name" value="$machine.name"/></td></tr>
-    <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$machine.memory"/>MB (max $max_mem)</td></tr>
-    <tr><td>Disk:</td><td><input type="text" size=3 name="disk" value="${machine.disks[0].size/1024.}"/>GB (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr>
-#end if
-    <tr><td><input type="submit" class="button" name="action" value="Change"/></td></tr>
-  </table>
-</form>
-
-#end def