Code

Added Focus patch
[gosa.git] / plugins / admin / fai / faiTemplate.tpl
1 <table summary="" width="100%">
2         <tr>
3                 <td valign="top" style="border-right:1px solid #A0A0A0; width:50%">
4                                 <h2><img class="center" alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
5                                 <table summary="" cellspacing="4">
6                                         <tr>
7                                                 <td>
8                                                         <LABEL for="cn">
9                                                         {t}Name{/t}{$must}
10                                                         </LABEL>
11                                                 </td>
12                                                 <td>
13 {render acl=$cnACL}
14                                                         <input value="{$cn}" size="45" maxlength="80" disabled id="cn">
15 {/render}
16                                                 </td>
17                                         </tr>
18                                         <tr>
19                                                 <td>
20                                                         <LABEL for="description">
21                                                         {t}Description{/t}
22                                                         </LABEL>
23                                                 </td>
24                                                 <td>
25 {render acl=$descriptionACL}
26                                                         <input value="{$description}" size="45" maxlength="80" {$description} name="description" id="description">
27 {/render}
28                                                 </td>
29                                         </tr>
30                                 </table>
31                 </td>
32                 <td style="width:50%">
33                                 <h2><img class="center" alt="" src="images/fai_template.png" align="middle" title="{t}Objects{/t}">&nbsp;
34                                         <LABEL for="SubObject">
35                                                 {t}List of template files{/t}
36                                         </LABEL>
37                                 </h2>
38                         {$Entry_divlist}
39 {if $sub_object_is_addable}
40                                 <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}">
41 {else}
42                                 <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}" disabled>
43 {/if}
44                 </td>
45         </tr>
46 </table>
47 <input type="hidden" value="1" name="FAItemplate_posted">
48 <!-- Place cursor -->
49 <script language="JavaScript" type="text/javascript">
50   <!-- // First input field on page
51         focus_field('cn','description');
52   -->
53 </script>