Remove the useless User class (now user is a string)
[invirt/packages/invirt-web.git] / templates / list.tmpl
index 68f0858..95cb96c 100644 (file)
@@ -16,7 +16,8 @@ List of your VMs
 #else if $varExists('new_machine')
 <p>Congratulations! You successfully created a new VM called $new_machine.</p>
 #end if
-    <form action="create" method="POST" onsubmit="return jsFormSubmit('create', this);">
+    <form action="create" method="POST">
+    <input type="hidden" name="back" value="list"/>
       <table>
       $errorRow('create', $err)
        <tr>
@@ -50,6 +51,11 @@ $errorRow('vmtype', $err)
          <td>$cdromList($cdroms, $defaults.cdrom)</td>
        </tr>
 $errorRow('cdrom', $err)
+       <tr>
+         <td>Owner</td>
+         <td><input type="text" name="owner" value="$defaults.owner"/></td>
+       </tr>
+       $errorRow('owner', $err)
       </table>
       <input type="submit" class="button" value="Create it!"/>
     </form>
@@ -64,10 +70,8 @@ $errorRow('cdrom', $err)
 #if $machine.nics
 #set $nic = $machine.nics[0]
        <td>$nic.ip</td>
-       <td>$nic.hostname</td>
 #else
        <td></td>
-       <td></td>
 #end if
 <td>#slurp
 #if $machine.uptime
@@ -84,11 +88,12 @@ $has_vnc[$machine]
 #end if
 </td>
        <td>
-         <form action="command" method="post" onsubmit="return rowFormSubmit(this, 'list');">
+         <form action="command" method="post">
+           <input type="hidden" name="back" value="list"/>
            <input type="hidden" name="machine_id"
                   value="$machine.machine_id"/>
 <input type="submit" class="button" name="action" value="#slurp
-#if $machine.uptime then 'Shutdown' else 'Power on'
+#if $machine.uptime then 'Power off' else 'Power on'
 "/>
          </form>
        </td>
@@ -100,9 +105,8 @@ $has_vnc[$machine]
       <tr>
        <td>Name</td>
        <td>Memory</td>
-       <td>owner</td>
+       <td>Owner</td>
        <td>IP</td>
-       <td>Hostname</td>
        <td>Uptime</td>
        <td>VNC</td>
        <td></td>
@@ -119,7 +123,7 @@ $has_vnc[$machine]
 #else
     <p>You have the following VMs:</p>
 #end if
-    <p><a href="list" onclick="new Ajax.Updater('machinelist', 'list?js=machinelist', {method: 'get' });return false">refresh</a></p>
+    <p><a href="list">refresh</a></p>
     <div id="machinelist">
     $machineList($machines)
     </div>