Removed the Javascript, since I realized that
[invirt/packages/invirt-web.git] / templates / list.tmpl
index 68f0858..50022b2 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>
@@ -84,7 +85,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
@@ -119,7 +121,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>