Disable image cloning when ice3 is booted - this should work as a locking
[invirt/packages/invirt-web.git] / code / templates / list.tmpl
index c55261c..5c6f2c5 100644 (file)
@@ -61,9 +61,13 @@ $errorRow('vmtype', $err)
 #end filter
         <tr>
           <td>Clone image?</td>
 #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>
           <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 maintenence</td>
+#end if
         </tr>
 #filter None
 $errorRow('autoinstall', $err)
         </tr>
 #filter None
 $errorRow('autoinstall', $err)