Code

Udpated JS focus,
[gosa.git] / plugins / admin / fai / faiTemplate.tpl
index b22bc910210350ce4ca579cc990a9ed36c69b3a3..f67bf2307ba0963e084aa6a379f03a65f09bd6a3 100644 (file)
@@ -1,51 +1,46 @@
-<table width="100%">
+<table summary="" width="100%">
        <tr>
-               <td width="50%" valign="top">
-                               <h2><img alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
+               <td valign="top" style="border-right:1px solid #A0A0A0; width:50%">
+                               <h2><img class="center" alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
                                <table summary="" cellspacing="4">
                                        <tr>
                                                <td>
                                                        <LABEL for="cn">
-                                                       {t}Name{/t}
+                                                       {t}Name{/t}{$must}
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$cn}" disabled id="cn">
+                                                       <input value="{$cn}" size="45" maxlength="80" disabled id="cn">
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                        <LABEL for="description">
-                                                       {t}Description{/t}{$must}
+                                                       {t}Description{/t}
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$description}" {$description} name="description" id="description">
+                                                       <input value="{$description}" size="45" maxlength="80" {$description} name="description" id="description" {$descriptionACL}>
                                                </td>
                                        </tr>
                                </table>
                </td>
-               <td style="border-left: 1px solid rgb(160, 160, 160);">
-                  &nbsp;
-               </td>
-               <td>
-                               <h2><img alt="" src="images/fai_template.png" align="middle" title="{t}Objects{/t}">&nbsp;
+               <td style="width:50%">
+                               <h2><img class="center" alt="" src="images/fai_template.png" align="middle" title="{t}Objects{/t}">&nbsp;
                                        <LABEL for="SubObject">
                                                {t}List of template files{/t}
                                        </LABEL>
                                </h2>
-                               <table width="100%">
-                               <tr>
-                                       <td>
-                                               <select name="SubObject" title="{t}Choose a template to delete or edit{/t}" style="width:100%;" size=15 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}">
-                                       </td>
-                               </tr>
-                               </table>
+                       {$Entry_divlist}
+                               <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}" {$cnACL}>
                </td>
        </tr>
 </table>
+<input type="hidden" value="1" name="FAItemplate_posted">
+<!-- Place cursor -->
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+       focus_field('cn','description');
+  -->
+</script>
+