Code

Udpated JS focus,
[gosa.git] / plugins / admin / fai / faiVariable.tpl
index 4ed20adcc892be448d0c3eb056485469993f52e3..360eb83ef30bea301af276873c2c105b648245b4 100644 (file)
@@ -1,7 +1,7 @@
-<table width="100%">
+<table summary="" width="100%">
        <tr>
                <td width="50%" valign="top">
-                               <h2><img alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
+                               <h2><img class="center" alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
                                <table summary="" cellspacing="4">
                                        <tr>
                                                <td>
@@ -10,7 +10,7 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$cn}" size="45" maxsize="80" disabled id="cn">
+                                                       <input value="{$cn}" size="45" maxlength="80" disabled id="cn">
                                                </td>
                                        </tr>
                                        <tr>
@@ -20,7 +20,7 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input size="45" maxsize="80" value="{$description}" {$description} name="description" id="description">
+                                                       <input size="45" maxlength="80" value="{$description}" name="description" id="description" {$descriptionACL}>
                                                </td>
                                        </tr>
                                </table>
                   &nbsp;
                </td>
                <td>
-                               <h2><img alt="" src="images/fai_variable.png" align="middle" title="{t}Objects{/t}">&nbsp;
+                               <h2><img class="center" alt="" src="images/fai_variable.png" align="middle" title="{t}Objects{/t}">&nbsp;
                                        <LABEL for="SubObject">
                                                {t}List of assigned variables{/t}
                                        </LABEL>
                                </h2>
-                               <table width="100%">
+                               <table summary="" width="100%">
                                <tr>
                                        <td>
-                                               <select name="SubObject" 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>