Remove the hostname as separate from machine name.
[invirt/packages/invirt-web.git] / templates / list.tmpl
index 68f0858..67cefdc 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>
@@ -64,10 +65,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,7 +83,8 @@ $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
@@ -102,7 +102,6 @@ $has_vnc[$machine]
        <td>Memory</td>
        <td>owner</td>
        <td>IP</td>
-       <td>Hostname</td>
        <td>Uptime</td>
        <td>VNC</td>
        <td></td>
@@ -119,7 +118,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>