Code

Fixed remove.tpl
[gosa.git] / plugins / admin / fai / faiHookEntry.tpl
index 2dd86e4fcd40ef45539e8e3f51ac220ec4d792c6..0ae23ac1bf0bfeacca326d555102e72275ef39b3 100644 (file)
@@ -6,18 +6,18 @@
                                <table>
                                        <tr>
                                                <td>
-                                                       {t}Name{/t}&nbsp;{$must}
+                                                       {t}Name{/t}{$must}&nbsp;
                                                </td>
                                                <td>
-                                                       <input value="{$Object_cn}" name="Object_cn">
+                                                       <input value="{$cn}" name="cn">
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
-                                                       {t}Description{/t}&nbsp;{$must}
+                                                       {t}Description{/t}&nbsp;
                                                </td>
                                                <td>
-                                                       <input value="{$Object_description}" name="Object_description">
+                                                       <input value="{$description}" name="description">
                                                </td>
                                        </tr>
                                </table>
                                <table width="100%">
                                        <tr>
                                                <td>
-                                                       <LABEL for="Object_FAIscript">
-                                                       {t}Script{/t}&nbsp;{$must}
+                                                       <LABEL for="FAItask">
+                                                       {t}Task{/t}&nbsp;
                                                        </LABEL>
-                                               </td>
-                                               <td>
-                                                       <input type="text" name="Object_FAIscript" value="{$Object_FAIscript}" id="Object_FAIscript" style="width:280px;">
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <LABEL for="Object_FAItask">
-                                                       {t}Task{/t}&nbsp;{$must}
-                                                       </LABEL>
-                                               </td>
-                                               <td>
-                                                       <input type="text" name="Object_FAItask" value="{$Object_FAItask}" id="Object_FAItask" style="width:280px;">
+                                                       <select name="FAItask" title="{t}Choose an existing FAI task{/t}">
+                                                               {html_options values=$tasks output=$tasks selected=$FAItask}
+                                                       </select>
                                                </td>
                                        </tr>
                                </table>
                </td>
        </tr>
 </table>
+
+
+<p class="seperator">&nbsp;</p>
+<h2><img alt="" src="images/fai_hook.png" align="middle" title="{t}Hook attributes{/t}">&nbsp;
+    <LABEL for="FAIscript">
+        {t}Script{/t}
+    </LABEL>
+    </h2>
+<table width="99%">
+    <tr>
+        <td>
+            <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}">
+</div>
+
 <p class="seperator">&nbsp;</p>
 <br>
 <div style="align:right;" align="right">
-       <input type="submit" value="{t}Save{/t}"        name="SaveSubObject">&nbsp;
-       <input type="submit" value="{t}Abort{/t}"       name="CancelSubObject">
+       <input type="submit" value="{t}Apply{/t}"       name="SaveSubObject">&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>