Moved sipb-xen-www into a package
[invirt/packages/invirt-web.git] / templates / list.tmpl
diff --git a/templates/list.tmpl b/templates/list.tmpl
deleted file mode 100644 (file)
index f820385..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-#from skeleton import skeleton
-#extends skeleton
-
-#def title
-List of your VMs
-#end def
-
-#def body
-#if not $machines
-   
-#else
-    <p>You have the following VMs:</p>
-    <table>
-      <tr>
-       <td>Name</td>
-       <td>Memory</td>
-       <td>owner</td>
-       <td>IP</td>
-       <td>MAC Address</td>
-       <td>Hostname</td>
-       <td>Status</td>
-       <td>VNC</td>
-       <td>Restart?</td>
-      #for $machine in $machines:
-      <tr> 
-       <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>
-       <td>${machine.memory}M</td>
-       <td>$machine.owner</td>
-#if $machine.nics
-#set $nic = $machine.nics[0]
-       <td>$nic.ip</td>
-       <td>$nic.mac_addr</td>
-       <td>$nic.hostname</td>
-#else
-       <td></td>
-       <td></td>
-       <td></td>
-#end if
-       <td>Good!</td>
-       <td><a href="vnc?machine_id=$machine.machine_id">Console</a></td>
-       <td>
-         <form action="restart">
-           <input type="hidden" name="machine_id"
-                  value="$machine.machine_id"/>
-           <input type="submit" class="button"
-                  value="restart"/>
-         </form>
-       </td>
-      </tr>
-      #end for
-    </table>
-#end if
-
-    <p>Create a new VM:</p>
-    <form action="create">
-      <table>
-       <tr>
-         <td>Name</td>
-         <td><input type="text" name="name" value="$user.username"/></td>
-       </tr>
-       <tr>
-         #set $maxmem=256
-         <td>Memory</td>
-         <td><input type="text" name="memory" value="$maxmem" size=3/> megabytes ($maxmem max)</td>
-       </tr>
-       <tr>
-         #set $maxdisk=1.5
-         <td>Disk</td>
-         <td><input type="text" name="disk" value="$maxdisk" size=3/> gigabytes ($maxdisk max)</td>
-       </tr>
-       <tr>
-         <td>HVM/ParaVM</td>
-         <td>
-           <input checked type="radio" name="vmtype" value="hvm">HVM</input>
-           <input type="radio" name="vmtype" value="paravm">ParaVM</input>
-         </td>
-       </tr>
-       <tr>
-         <td>Initial Install</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>
-      </table>
-      <input type="submit" class="button" value="Create it!"/>
-    </form>
-
-#end def