Code

Added category parameter to tabs.
[gosa.git] / plugins / admin / fai / faiHook.tpl
index b821e5310e57cf68c9ea781dff9b4f6d45937072..df968b1cf3e7b27cf541cdfb1689d2ab09622c25 100644 (file)
@@ -1,4 +1,4 @@
-<table width="100%">
+<table width="100%" summary=''>
        <tr>
                <td width="50%" valign="top">
                                <h2><img class="center" alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
@@ -10,7 +10,9 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$cn}" size="45" maxsize="80" disabled id="cn">
+{render acl=$cnACL}
+                                                       <input value="{$cn}" size="45" maxlength="80" disabled id="cn">
+{/render}
                                                </td>
                                        </tr>
                                        <tr>
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$description}" size="45" maxsize="80"  {$description} name="description" id="description">
+{render acl=$descriptionACL}
+                                                       <input value="{$description}" size="45" maxlength="80" 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_hook.png" align="middle" title="{t}Objects{/t}">&nbsp;
                                        <LABEL for="SubObject">
                                                {t}List of hook scripts{/t}
                                        </LABEL>
                                </h2>
-                               <table width="100%">
+                               <table width="100%" summary=''>
                                <tr>
                                        <td>
-                                               <select name="SubObject" title="{t}Choose a hook to delete or edit{/t}" style="width:100%" size="20" id="SubObject">
-                                                       {html_options values=$SubObjectKeys output=$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}">
+                                               {$Entry_divlist}
+{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>