Code

Added sorting to FAIscripts
[gosa.git] / plugins / admin / fai / faiScript.tpl
index ee1c93c9f52cf08e7f55057176e0e5345d352d79..093e8b5f76df2132bca228a5478c32ba47fabc9b 100644 (file)
@@ -10,7 +10,9 @@
                                                        </LABEL>
                                                </td>
                                                <td>
+{render acl=$cnACL}
                                                        <input value="{$cn}"  maxlength="80" size="45" disabled id="cn">
+{/render}
                                                </td>
                                        </tr>
                                        <tr>
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input size="45" maxlength="80" value="{$description}" {$description} name="description" id="description" {$descriptionACL}>
+{render acl=$descriptionACL}
+                                                       <input size="45" maxlength="80" value="{$description}" name="description" id="description" >
+{/render}
                                                </td>
                                        </tr>
                                </table>
                </td>
-               <td style="border-left: 1px solid rgb(160, 160, 160);">
-                  &nbsp;
-               </td>
+       </tr>
+</table>
+<p class="seperator">&nbsp;</p>
+<table width="100%" summary="">
+       <tr>
                <td>
                                <h2><img class="center" alt="" src="images/fai_script.png" align="middle" title="{t}Objects{/t}">&nbsp;
-                                       <LABEL for="SubObject">
                                                {t}List of scripts{/t}
-                                       </LABEL>
                                </h2>
                                <table width="100%" summary="">
                                <tr>
                                        <td>
                                                {$Entry_divlist}
-                                               <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}" {$cnACL}>
+{if $sub_object_is_addable}
+                                               <input type="submit" name="AddSubObject"     value="{t}Add{/t}" title="{t}Add{/t}" >
+{else}
+                                               <input type="submit" name="AddSubObject"     value="{t}Add{/t}" title="{t}Add{/t}" disabled>
+{/if}
                                        </td>
                                </tr>
                                </table>
@@ -48,8 +56,8 @@
 <input type="hidden" value="1" name="FAIscript_posted" >
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
-  <!-- // First input field on page
-  document.mainform.description.focus();
-  -->
+<!--
+       focus_field("cn","description");
+-->
 </script>