Code

Added Focus patch
[gosa.git] / plugins / admin / fai / faiScriptEntry.tpl
index 96a16034697c72de621d657a7cf05bc10c23c185..45988a75678c3a77a1f5e7815f7418f49eb02975 100644 (file)
@@ -9,7 +9,9 @@
                                                        {t}Name{/t}{$must} 
                                                </td>
                                                <td>
+{render acl=$cnACL}
                                                        <input value="{$cn}" size="45" maxlength="80" name="cn">
+{/render}
                                                </td>
                                        </tr>
                                        <tr>
@@ -17,7 +19,9 @@
                                                        {t}Description{/t}&nbsp;
                                                </td>
                                                <td>
+{render acl=$descriptionACL}
                                                        <input size="45" maxlength="80" value="{$description}" name="description">
+{/render}
                                                </td>
                                        </tr>
                                </table>
                                                        </LABEL>
                                                </td>
                                                <td>
+{render acl=$FAIpriorityACL}
                                                    <select name="FAIpriority" title="{t}Choose a priority{/t}">
-                                               {html_options values=$FAIprioritys output=$FAIprioritys selected=$FAIpriority}
+                                               {html_options options=$FAIprioritys selected=$FAIpriority}
                                        </select>
+{/render}
                                                </td>
                                        </tr>
                                </table>
 <table summary="" width="99%">
     <tr>
         <td>
-            <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript">{$FAIscript}</textarea>
+{render acl=$FAIscriptACL}
+            <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript"  >{$FAIscript}</textarea>
+{/render}
         </td>
     </tr>
 </table>
 <br>
 <div>
+{render acl=$FAIscriptACL}
        <input type="file" name="ImportFile">&nbsp;
+{/render}
+{render acl=$FAIscriptACL}
        <input type="submit" name="ImportUpload" value="{t}Import script{/t}">
+{/render}
+{render acl=$FAIscriptACL}
+       {$DownMe}
+{/render}
 </div>
 <br>
 <div style="align:right;" align="right">
-       <input type="submit" value="{t}Apply{/t}"       name="SaveSubObject">&nbsp;
+       <input type="submit" value="{t}Apply{/t}"       name="SaveSubObject" {$cnACL}>&nbsp;
        <input type="submit" value="{t}Cancel{/t}"      name="CancelSubObject">
 </div>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn','description');
   -->
 </script>