Put validation behind more abstraction.
[invirt/packages/invirt-web.git] / code / templates / list.tmpl
index f6c9a09..2242c2f 100644 (file)
@@ -39,7 +39,7 @@ $errorRow('memory', $err)
 #end filter
        <tr>
          <td>Disk</td>
-         <td><input type="text" name="disk" value="$defaults.disk" size=3/> GiB (${"%0.1f" % ($max_disk-0.05)} max)</td>
+         <td><input type="text" name="disksize" value="$defaults.disk" size=3/> GiB (${"%0.1f" % ($max_disk-0.05)} max)</td>
        </tr>
 #filter None
 $errorRow('disk', $err)
@@ -47,7 +47,7 @@ $errorRow('disk', $err)
         <tr>
           <td>HVM/ParaVM#slurp
 #filter None
-$helppopup('hvm_paravm')#slurp
+$helppopup('HVM/ParaVM')#slurp
 #end filter
 </td>
           <td>
@@ -61,9 +61,13 @@ $errorRow('vmtype', $err)
 #end filter
         <tr>
           <td>Clone image?</td>
+#if $can_clone
           <td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" onchange="onclone(event)"/>
               (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.)
               <script type='text/javascript'>function onclone(e){ document.getElementById('cdromlist').value = ''; }</script></td>
+#else
+         <td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" disabled="disabled"/> Image cloning is currently disabled for maintenance</td>
+#end if
         </tr>
 #filter None
 $errorRow('autoinstall', $err)
@@ -71,7 +75,7 @@ $errorRow('autoinstall', $err)
        <!--<tr>
          <td>Autoinstall#slurp
 #filter None
-$helppopup('autoinstall')#slurp
+$helppopup('Autoinstall')#slurp
 #end filter
 </td>
          <td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto">
@@ -151,12 +155,12 @@ $has_vnc[$machine]
        <th>Memory</th>
        <th>Owner#slurp
 #filter None
-$helppopup('owner')#slurp
+$helppopup('Owner')#slurp
 #end filter
 </th>
         <th>Administrator#slurp
 #filter None
-$helppopup('administrator')#slurp
+$helppopup('Administrator')#slurp
 #end filter
 </th>
        <th>IP</th>