Code

Updated samba plugin, show domain infos in an extra tab
[gosa.git] / gosa-plugins / samba / personal / samba / samba3.tpl
index 9e158dd90d2c24184306a5de90c4ab5e3fa5c27b..4974b52f81fc80e14524decbdba181f232dc6630 100644 (file)
@@ -27,7 +27,7 @@
      <td>
 {render acl=$sambaDomainNameACL  checkbox=$multiple_support checked=$use_sambaDomainName}
       <select id="sambaDomainName" size="1" name="sambaDomainName"
-       {if $display_information} onChange="document.mainform.submit();" {/if}>
+       onChange="document.mainform.submit();">
        {html_options values=$domains output=$domains selected=$sambaDomainName}
       </select>
 {/render}
 <table style='width:100%;'>
  <tr>
   <td>{t}Show information{/t}
-   {if $display_information}
-    <input type='submit' name='display_information' value='{t}Hide{/t}'>
-   {else}
     <input type='submit' name='display_information' value='{t}Show{/t}'>
-   {/if}
   </td> 
  </tr>
- {if $display_information}
- <tr>
-  <td>
-    {$samba_information}
-  </td>
- </tr>
- {/if}
 </table>
 <p class="seperator">&nbsp;</p>
 
   <td style="vertical-align:top;">
 {render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_inherit}
    <input class="center" type=checkbox id="inherit" name="inherit" {if $inheritstate} checked {/if}
+    {$tsloginstate}
        onClick="changeState('CtxInitialProgram');
                 changeState('CtxWorkDirectory');"
        
      <td><label for="CtxInitialProgram">{t}Initial program{/t}</label></td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_CtxInitialProgram}
-      <input id="CtxInitialProgram" name="CtxInitialProgram" size=35 maxlength=60 value="{$CtxInitialProgram}" {$inheritstate}>
+      <input id="CtxInitialProgram" name="CtxInitialProgram" size=35 maxlength=60 value="{$CtxInitialProgram}" {$inheritstate} {$tsloginstate}>
 {/render}
      </td>
     </tr>
      <td><label for="CtxWorkDirectory">{t}Working directory{/t}</label></td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_CtxWorkDirectory}
-      <input id="CtxWorkDirectory" name="CtxWorkDirectory" size=35 maxlength=60        value='{$CtxWorkDirectory}' {$inheritstate}>
+      <input id="CtxWorkDirectory" name="CtxWorkDirectory" size=35 maxlength=60        value='{$CtxWorkDirectory}' {$inheritstate} {$tsloginstate}>
 {/render}
      </td>
     </tr>
      </td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_shadow}
-      <select id="shadow" size="1" name="shadow" >
+      <select id="shadow" size="1" name="shadow" {$tsloginstate}>
        {html_options options=$shadow selected=$shadowmode}
       </select>
 {/render}
      <td><label for="brokenconn">{t}On broken or timed out{/t}</label></td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_brokenconn}
-      <select id="brokenconn" size="1" name="brokenconn">
+      <select id="brokenconn" size="1" name="brokenconn" {$tsloginstate}>
        {html_options options=$brokenconn selected=$brokenconnmode}
       </select>
 {/render}
      <td><label for="reconn">{t}Reconnect if disconnected{/t}</label></td>
      <td>
 {render acl=$AllowLoginOnTerminalServerACL  checkbox=$multiple_support checked=$use_reconn}
-      <select id="reconn" size="1" name="reconn">
+      <select id="reconn" size="1" name="reconn" {$tsloginstate}>
        {html_options options=$reconn selected=$reconnmode}
       </select>
 {/render}
     <tr>
      <td>
       {render acl=$sambaPwdMustChangeACL  checkbox=$multiple_support checked=$use_password_expires}
-      <input id="password_expires" type=checkbox name="password_expires" value="1" {$flagsC} class="center">
+      <input id="password_expires" type=checkbox name="password_expires" value="1" {$flagsC} class="center"
+               onClick="document.mainform.submit();">
       {/render}
       <label for="password_expires">{t}Password expires on{/t}</label>
      </td>
      <td>
       {render acl=$sambaPwdMustChangeACL}
-      <select name=day onChange="createResult(this.form,this.form.sambaPwdMustChange);">
+      <select name=day onChange="createResult(this.form,this.form.sambaPwdMustChange); document.mainform.submit();">
        {html_options values=$days output=$days selected=$day}
       </select>
       {/render}
       {render acl=$sambaPwdMustChangeACL}
-      <select name=month onChange="populate(this.form,this.form.sambaPwdMustChange);">
+      <select name=month onChange="populate(this.form,this.form.sambaPwdMustChange); document.mainform.submit();">
        {html_options options=$months selected=$month}
       </select>
       {/render}
       {render acl=$sambaPwdMustChangeACL}
-      <select name=year onChange="populate(this.form,this.form.sambaPwdMustChange);">
+      <select name=year onChange="populate(this.form,this.form.sambaPwdMustChange); document.mainform.submit();">
        {html_options values=$years output=$years selected=$year}
       </select>
       {/render}