Code

Only display those FAIobjects, that are in the currently edited release
[gosa.git] / plugins / admin / fai / faiScriptEntry.tpl
index 5652244ecfc6db5f865ed097765a506e07112a88..ab9c5c15227e746bc6d27decb919533e9354f36a 100644 (file)
@@ -2,14 +2,14 @@
 <table width="100%" summary="">
        <tr>
                <td valign="top" width="50%">
-                       <h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
-                               <table>
+                       <h2><img class="center" alt="" src="images/forward.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
+                               <table summary="">
                                        <tr>
                                                <td>
                                                        {t}Name{/t}{$must}&nbsp;
                                                </td>
                                                <td>
-                                                       <input value="{$cn}" name="cn">
+                                                       <input value="{$cn}" size="45" maxlength="80" name="cn"  {$cnACL}>
                                                </td>
                                        </tr>
                                        <tr>
@@ -17,7 +17,7 @@
                                                        {t}Description{/t}&nbsp;
                                                </td>
                                                <td>
-                                                       <input size=40 value="{$description}" name="description">
+                                                       <input size="45" maxlength="80" value="{$description}" name="description" {$descriptionACL}>
                                                </td>
                                        </tr>
                                </table>
@@ -26,8 +26,8 @@
            &nbsp;
         </td>
                <td valign="top">
-                               <h2><img alt="" src="images/fai_script.png" align="middle" title="{t}Properties{/t}">&nbsp;{t}Script attributes{/t}</h2>
-                               <table width="100%">
+                               <h2><img class="center" alt="" src="images/fai_script.png" align="middle" title="{t}Properties{/t}">&nbsp;{t}Script attributes{/t}</h2>
+                               <table summary="" width="100%">
                                        <tr>
                                                <td>
                                                        <LABEL for="FAIpriority">
@@ -35,8 +35,8 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                   <select name="FAIpriority" title="{t}Choose a priority{/t}">
-                                               {html_options values=$FAIprioritys output=$FAIprioritys selected=$FAIpriority}
+                                                   <select name="FAIpriority" title="{t}Choose a priority{/t}" {$FAIpriorityACL}>
+                                               {html_options options=$FAIprioritys selected=$FAIpriority}
                                        </select>
                                                </td>
                                        </tr>
        </tr>
 </table>
 <p class="seperator">&nbsp;</p>
-<h2><img alt="" src="images/fai_script.png" align="middle" title="{t}Script attributes{/t}">&nbsp;
+<h2><img class="center" alt="" src="images/fai_script.png" align="middle" title="{t}Script attributes{/t}">&nbsp;
        <LABEL for="FAIscript">
                {t}Script{/t}
        </LABEL>
        </h2>
-<table width="99%">
+<table summary="" width="99%">
     <tr>
         <td>
-            <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript">{$FAIscript}</textarea>
+            <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript"  >{$FAIscript}</textarea>
         </td>
     </tr>
 </table>
 <br>
 <div>
-       <input type="file" name="ImportFile">&nbsp;
-       <input type="submit" name="ImportUpload" value="{t}Import script{/t}">
+       <input type="file" name="ImportFile"  {$FAIscriptACL}>&nbsp;
+       <input type="submit" name="ImportUpload" value="{t}Import script{/t}" {$FAIscriptACL}>
+       {$DownMe}
 </div>
 <br>
 <div style="align:right;" align="right">
-       <input type="submit" value="{t}Save{/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();
+  -->
+</script>