Code

Updated samba grey out handling when editing multiple entries
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Dec 2007 10:13:53 +0000 (10:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Dec 2007 10:13:53 +0000 (10:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8164 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/samba/class_sambaAccount.inc
gosa-core/plugins/personal/samba/samba3.tpl

index 3fb309566cd97248d047a5e980a59bdb6fb529f3..ac2bcb711cd41e0eda43d8416a1b1e482e6faa55 100644 (file)
@@ -560,9 +560,6 @@ class sambaAccount extends plugin
         if($this->acl_is_writeable("AllowLoginOnTerminalServer",$SkipWrite)){
           $smarty->assign("inheritstate", $this->mungedObject->getInheritMode()?"disabled":"");
         }
-  
-
-  
       }else{
         $smarty->assign("tsloginstate", "");
         $smarty->assign("inheritstate", "");
@@ -685,6 +682,10 @@ class sambaAccount extends plugin
       }
     }
 
+    if($this->multiple_support_active){
+      $smarty->assign("tsloginstate","");
+    }
+
     /* Show main page */
     $smarty->assign("multiple_support",$this->multiple_support_active);
     if ($this->samba3){
index ab0bfb0259e65a84ecf35811b0024faf7bdf7475..bb8225d7300c8b8e2be349c9181fd5c616b5e1f7 100644 (file)
 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
  <tr>
   <td style="vertical-align:top;width:50%">
-{render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_tslogin}
+
+{if $multiple_support}
+       <input class="center" type=checkbox name="use_tslogin" id="use_tslogin" value="1" 
+               {if $use_tslogin} checked {/if}
+               onClick="changeState('tslogin')">
+       <input class="center" type=checkbox name="tslogin" id="tslogin" value="1" {$tslogin}
+               {if !$use_tslogin} disabled {/if}>
+{else}
+{render acl=$AllowLoginOnTerminalServerACL}
    <input class="center" type=checkbox name="tslogin" id="tslogin" value="1" {$tslogin}
        onclick="
                changeState('CtxWFHomeDir');
@@ -91,6 +99,7 @@
                changeState('reconn');
        ">
 {/render}
+{/if}
    <i>{t}Allow login on terminal server{/t}</i>
    <table summary="">
     <tr>