2 <input type="hidden" name="SubObjectFormSubmitted" value="1">
3 <table width="100%" summary="{t}FAI hook entry{/t}">
4 <tr>
5 <td valign="top" width="50%">
6 <h3>{t}Generic{/t}
7 </h3>
8 <table summary="{t}Generic settings{/t}">
9 <tr>
10 <td>{t}Name{/t}
11 {$must}
12 </td>
13 <td>
14 {render acl=$cnACL}
15 <input type='text' value="{$cn}" size="45" name="cn">
16 {/render}
17 </td>
18 </tr>
19 <tr>
20 <td>{t}Description{/t}
21 </td>
22 <td>
23 {render acl=$descriptionACL}
24 <input type='text' value="{$description}" size="45" name="description">
25 {/render}
26 </td>
27 </tr>
28 </table>
29 </td>
30 <td class='left-border'>
31 </td>
32 <td>
33 <h3>{t}Hook attributes{/t}
34 </h3><LABEL for="FAItask">{t}Task{/t} </LABEL>
35 {render acl=$FAItaskACL}
36 <select id="FAItask" name="FAItask" title="{t}Choose an existing FAI task{/t}" size=1>
37 {html_options values=$tasks output=$tasks selected=$FAItask}
38 </select>
39 {/render}
40 </td>
41 </tr>
42 </table>
43 <hr>
44 <h3><LABEL for="FAIscript">{t}Script{/t}</LABEL>
45 </h3>
46 {render acl=$FAIscriptACL}<textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript" rows=20 cols=120>
47 {$FAIscript}</textarea>
48 {/render}
49 <br>
50 <div>
51 {render acl=$FAIscriptACL}
52 <input type="file" name="ImportFile">
53 {/render}
54 {render acl=$FAIscriptACL}
55 <button type='submit' name='ImportUpload'>{t}Import script{/t}</button>
56 {/render}
57 {render acl=$FAIscriptACL}
58 {$DownMe}
59 {/render}
60 </div>
61 <hr>
62 <br>
63 <div class="plugin-actions">
65 {if !$freeze}
66 <button type='submit' name='SaveSubObject'>
67 {msgPool type=applyButton}</button>
69 {/if}
70 <button type='submit' name='CancelSubObject'>
71 {msgPool type=cancelButton}</button>
72 </div><!-- Place cursor -->
73 <script language="JavaScript" type="text/javascript"><!-- // First input field on page focus_field('cn','description'); --></script>