Code

Fixed greyout
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Jul 2006 11:14:14 +0000 (11:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Jul 2006 11:14:14 +0000 (11:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4290 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/samba/samba3.tpl

index a4edd34d68500a6602ced53e2566c7ae9b08259a..fb37e1835584b5e6eec4d77f72721168f33b811b 100644 (file)
   </td>
   <td style="vertical-align:top;">
 {render acl=$AllowLoginOnTerminalServerACL}
-   <input type=checkbox id="inherit" name="inherit"}> 
+   <input type=checkbox id="inherit" name="inherit"} {if $inheritstate} checked {/if}
+       onClick="changeState('CtxInitialProgram');
+                changeState('CtxWorkDirectory');"
+       
+       > 
 {/render}
    <i>{t}Inherit client config{/t}</i>
    <table summary="">
      <td><label for="CtxInitialProgram">{t}Initial program{/t}</label></td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL}
-      <input id="CtxInitialProgram" name="CtxInitialProgram" size=35 maxlength=60 value="{$CtxInitialProgram}">
+      <input id="CtxInitialProgram" name="CtxInitialProgram" size=35 maxlength=60 value="{$CtxInitialProgram}" {$inheritstate}>
 {/render}
      </td>
     </tr>
      <td><label for="CtxWorkDirectory">{t}Working directory{/t}</label></td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL}
-      <input id="CtxWorkDirectory" name="CtxWorkDirectory" size=35 maxlength=60        value='{$CtxWorkDirectory}'>
+      <input id="CtxWorkDirectory" name="CtxWorkDirectory" size=35 maxlength=60        value='{$CtxWorkDirectory}' {$inheritstate}>
 {/render}
      </td>
     </tr>
     <tr>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL}
-      <input id="CtxMaxConnectionTimeF" type=checkbox name="CtxMaxConnectionTimeF" value="1" {$CtxMaxConnectionTimeF} onclick="changeSubselectState('CtxMaxConnectionTimeF','CtxMaxConnectionTime')" {$tsloginstate}>
+      <input           id="CtxMaxConnectionTimeF"      type=checkbox                   name="CtxMaxConnectionTimeF" 
+                       value="1"                       {$CtxMaxConnectionTimeF}        
+                       onclick="changeState('CtxMaxConnectionTime')" {$tsloginstate}>
 {/render}
+
       <label for="CtxMaxConnectionTimeF">{t}Connection{/t}</label>
      </td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL}
-      <input name="CtxMaxConnectionTime" id="CtxMaxConnectionTime" size=5 maxlength=5 value="{$CtxMaxConnectionTime}" {$tsloginstate}>
+      <input name="CtxMaxConnectionTime" id="CtxMaxConnectionTime" size=5 maxlength=5 value="{$CtxMaxConnectionTime}" {$tsloginstate}
+                       { if !$CtxMaxConnectionTimeF } disabled  {/if}>
 {/render}
      </td>
     </tr>
      </td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL}
-      <input name="CtxMaxDisconnectionTime" id="CtxMaxDisconnectionTime" size=5 maxlength=5 value="{$CtxMaxDisconnectionTime}" {$tsloginstate}>
+      <input name="CtxMaxDisconnectionTime" id="CtxMaxDisconnectionTime" size=5 maxlength=5 value="{$CtxMaxDisconnectionTime}" {$tsloginstate}
+                       { if !$CtxMaxDisconnectionTimeF } disabled  {/if}>
 {/render}
      </td>
     </tr>
      </td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL}
-      <input name="CtxMaxIdleTime" id="CtxMaxIdleTime" size=5 maxlength=5 value="{$CtxMaxIdleTime}" {$tsloginstate}>
+      <input name="CtxMaxIdleTime" id="CtxMaxIdleTime" size=5 maxlength=5 value="{$CtxMaxIdleTime}" {$tsloginstate}
+                       { if !$CtxMaxIdleTimeF } disabled  {/if}>
 {/render}
      </td>
     </tr>