index c74f419885257b4cf3f741252a495f7ad575fc86..76537fdb77aebd343a7646c4050813baa07726e6 100644 (file)
<table width="100%" summary="">
<tr>
<td valign="top" width="50%">
- <h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}"> {t}Generic{/t}</h2>
- <table>
+ <h2><img class="center" alt="" src="images/forward.png" align="middle" title="{t}Generic{/t}"> {t}Generic{/t}</h2>
+ <table summary="">
<tr>
<td>
{t}Name{/t}{$must}
</td>
<td>
- <input value="{$Object_cn}" name="Object_cn">
+ <input value="{$cn}" size="45" name="cn" {$cnACL}>
</td>
</tr>
<tr>
<td>
- {t}Description{/t}{$must}
+ {t}Description{/t}
</td>
<td>
- <input value="{$Object_description}" name="Object_description">
+ <input value="{$description}" size="45" name="description" {$descriptionACL}>
</td>
</tr>
</table>
<td style="border-left: 1px solid rgb(160, 160, 160);">
</td>
- <td>
- <h2><img alt="" src="images/fai_hook.png" align="middle" title="{t}Hook attributes{/t}"> {t}Hook attributes{/t}</h2>
- <table width="100%">
+ <td style="vertical-align:top">
+ <h2><img class="center" alt="" src="images/fai_hook.png" align="middle" title="{t}Hook attributes{/t}"> {t}Hook attributes{/t}</h2>
+ <table width="100%" summary="">
<tr>
<td>
- <LABEL for="Object_FAIscript">
- {t}Script{/t}{$must}
+ <LABEL for="FAItask">
+ {t}Task{/t}
</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}{$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}" {$FAItaskACL}>
+ {html_options values=$tasks output=$tasks selected=$FAItask}
+ </select>
</td>
</tr>
</table>
</td>
</tr>
</table>
+
+
+<p class="seperator"> </p>
+<h2><img class="center" alt="" src="images/fai_hook.png" align="middle" title="{t}Hook attributes{/t}">
+ <LABEL for="FAIscript">
+ {t}Script{/t}
+ </LABEL>
+ </h2>
+<table width="99%" summary="">
+ <tr>
+ <td>
+ <textarea name="FAIscript" style="width:100%;height:300px;" id="FAIscript" >{$FAIscript}</textarea>
+ </td>
+ </tr>
+</table>
+<br>
+<div>
+ <input type="file" name="ImportFile" {$FAIscriptACL}>
+ <input type="submit" name="ImportUpload" value="{t}Import script{/t}" {$FAIscriptACL}>
+ {$DownMe}
+</div>
+
<p class="seperator"> </p>
<br>
<div style="align:right;" align="right">
- <input type="submit" value="{t}Save{/t}" name="SaveSubObject">
+ <input type="submit" value="{t}Apply{/t}" name="SaveSubObject" {$cnACL}>
<input type="submit" value="{t}Cancel{/t}" name="CancelSubObject">
</div>
+<!-- Place cursor -->
+<script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ focus_field('cn','description');
+ -->
+</script>