Code

REmoved command overload
[gosa.git] / plugins / admin / systems / workstationStartup.tpl
index 9466a5092669c249a311c3f9efd432bd8d20edcc..fe647589f4db19f73e42f2acb65438c392c8b863 100644 (file)
@@ -32,6 +32,8 @@
   </td>
   
   <td style="vertical-align:top;">
+       
+{if $fai_activated}
 
        {if $FAIdebianMirror == "inherited"}
 
                        <option disabled>&nbsp;</option>
                </select>       
                <input name="AddClass" value="{t}Add{/t}" type="submit"> 
-               <input name="DelClass" value="{t}Delete{/t}" type="submit"> 
+<!--           <input name="DelClass" value="{t}Delete{/t}" type="submit"> -->
        {/if}
+{/if}
                </td>
        </tr>
 </table>
                 <tr>
                         <td>
                         <select style="width:100%;height:150px;" name="gotoShare" multiple size=4 {$gotoShareACL} id="gotoShare">
-        {html_options values=$gotoShareKeys output=$gotoShares}
-        <option disabled>&nbsp;</option>
+                                            {html_options values=$gotoShareKeys output=$gotoShares}
+                                                               <option disabled>&nbsp;</option>
                                 </select>
                                 <br>
                         <select name="gotoShareSelection" {$gotoShareACL}>
-        {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
-        <option disabled>&nbsp;</option>
+                                                   {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
+                                                       <option disabled>&nbsp;</option>
                                 </select>
                                 <input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="{t}Mountpoint{/t}">
                                 <input type="submit" {$gotoShareACL} name="gotoShareAdd" value="{t}Add{/t}">
-                                <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}">
+                                <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}" {if $gotoSharesCount == 0} disabled {/if}>
                         </td>
                 </tr>
         </table>
   <!-- // First input field on page
   document.mainform.gotoLdapServer.focus();
   -->
+</script>