Code

Udpated JS focus,
[gosa.git] / plugins / admin / fai / faiVariable.tpl
index d7ef90216c24d01044a2b06a9d1794ac17d9c29a..360eb83ef30bea301af276873c2c105b648245b4 100644 (file)
@@ -20,7 +20,7 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input size="45" maxlength="80" value="{$description}" name="description" id="description">
+                                                       <input size="45" maxlength="80" value="{$description}" name="description" id="description" {$descriptionACL}>
                                                </td>
                                        </tr>
                                </table>
                                <table summary="" width="100%">
                                <tr>
                                        <td>
-                                               <select name="SubObject[]" multiple  title="{t}Choose a variable to delete or edit{/t}" style="width:100%;" size="20" id="SubObject">
-                                                       {html_options values=$SubObjectKeys output=$SubObjects}
+                                               <select name="SubObject[]" multiple  title="{t}Choose a variable to delete or edit{/t}" 
+                                                       style="width:100%;" size="20" id="SubObject">
+                                                       {html_options options=$SubObjects}
                                                </select><br>
-                                               <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}">
-                                               <input type="submit" name="EditSubObject"    value="{t}Edit{/t}"    title="{t}Edit{/t}">
-                                               <input type="submit" name="DelSubObject"     value="{t}Delete{/t}"  title="{t}Delete{/t}">
+                                               <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}" {$cnACL}>
+                                               <input type="submit" name="EditSubObject"    value="{t}Edit{/t}"    title="{t}Edit{/t}" >
+                                               <input type="submit" name="DelSubObject"     value="{t}Delete{/t}"  title="{t}Delete{/t}" {$cnACL}>
                                        </td>
                                </tr>
                                </table>
@@ -53,7 +54,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>