Code

Udpated JS focus,
[gosa.git] / plugins / admin / systems / workstation.tpl
index 9d7786509d4d4b22593cdf8a97686e4d9b731b36..9d6b9f85d0d3078e06be2f20dfd9e779e0a260fa 100644 (file)
@@ -9,14 +9,14 @@
      {else}
      <td><LABEL for="cn">{t}Workstation name{/t}</LABEL>{$must}</td>
      <td>
-      <input name="cn" id="cn" size=18 maxlength=60 value="{$cn}">
+      <input name="cn" id="cn" size=18 maxlength=60 value="{$cn}" {$cnACL}>
      </td>
      {/if}
     </tr>
     <tr>
      <td><LABEL for="cn">{t}Location{/t}</LABEL></td>
      <td>
-      <input name="l" id="l" size=18 maxlength=60 value="{$l}">
+      <input name="l" id="l" size=18 maxlength=60 value="{$l}" {$lACL}>
      </td>
     </tr>
     <tr>
@@ -56,7 +56,7 @@
    <table width="100%">
     <tr>
      <td colspan="2">
-        <input type="checkbox" value="1" name="inheritTimeServer"
+        <input type="checkbox" value="1" name="inheritTimeServer"  {$gotoNtpServerACL}
             {if $inheritTimeServer } checked {/if}
             onClick="javascript:
                     changeState('gotoNtpServerSelected');
@@ -91,6 +91,8 @@
 
 {$netconfig}
 {/if}
+
+{if $fai_activated}
 <p class="plugbottom" style="margin-bottom:0px; padding:0px;">&nbsp;</p>
 <h2><img class="center" alt="" align="middle" src="images/rocket.png"> {t}Action{/t}</h2>
 <table summary="">
   </td>
  </tr>
 </table>
+{/if}
 <input type="hidden" name="workgeneric_posted" value="1">
  {if $cn eq 'wdefault'}
 <!-- Place cursor -->
                <script language="JavaScript" type="text/javascript">
                  <!-- // First input field on page
-                 document.mainform.l.focus();
+                       focus_field('l');
                  -->
                </script>
      {else}
                <script language="JavaScript" type="text/javascript">
                  <!-- // First input field on page
-                 document.mainform.cn.focus();
+                       focus_field('cn');
                  -->
                </script>
      {/if}