Code

fixed macro visible flag in divlist
[gosa.git] / plugins / gofon / macro / generic.tpl
index 8096a5683224879436909d7771a1a58f302e2a14..07ab79fe0d2083560a90d27d680fa6485b5793d8 100755 (executable)
@@ -3,13 +3,13 @@
     <td>
                        <table summary="">
                        <tr>
-                               <td>{t}Macro name{/t}{$must}</td>
-                               <td><input name="cn" size=25 maxlength=60 value="{$cn}" title="{t}Macro name{/t}"></td>
+                               <td><LABEL for="cn">{t}Macro name{/t}</LABEL>{$must}</td>
+                               <td><input {$disable_cn} name="cn" id="id" size=13 maxlength=13 value="{$cn}" {$cnACL} title="{t}Macro name{/t}"></td>
                        </tr>
                        <tr>
-                               <td>{t}Display name{/t}</td>
+                               <td><LABEL for="displayName">{t}Display name{/t}</LABEL>{$must}</td>
                                <td>
-                                       <input name="displayName" size=35 maxlength=60 value="{$displayName}" title="{t}Macro name to be displayed{/t}">
+                                       <input {$displayNameACL} name="displayName" id="displayName" size=35 maxlength=60 value="{$displayName}" title="{t}Macro name to be displayed{/t}">
                                </td>
                        </tr>
                        <tr>
                                        </td>
                                </tr>
                        <tr>
-                               <td>{t}Base{/t}{$must}</td>
+                               <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
                                <td>
-                                          <select size="1" name="base" title="{t}Choose subtree to place application in{/t}">
+                                          <select size="1" id="base" name="base" title="{t}Choose subtree to place macro in{/t}" {$baseACL}>
                                                        {html_options options=$bases selected=$base_select}
-               <option disabled>&nbsp;</option>
+                                                       <option disabled>&nbsp;</option>
                                           </select>
+                                               {if $baseACL == ""}
+                                                       <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+                                               {else}
+                                                       <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+                                               {/if}
                                </td>
                        </tr>
                        </table>
                <td style="vertical-align:top;">
                        <table summary="">
                        <tr>
-                               <td>{t}Description{/t}</td>
+                               <td><LABEL for="description">{t}Description{/t}</LABEL></td>
                                <td>
-                                       <input name="description" size=35 maxlength=60 value="{$description}">
+                                       <input name="description" id="description" size=35 maxlength=80 value="{$description}"  {$descriptionACL}>
                                </td>
                        </tr>
                        <tr>
                                <td colspan=2>
-                                       <input type="checkbox" name="goFonMacroVisible" size=35 maxlength=60 value="1" {$goFonMacroVisibleChecked}> {t}Visible for user{/t}
+                                       <input type="checkbox" name="goFonMacroVisible" size=35 maxlength=60 value="1" {$goFonMacroVisibleACL} {$goFonMacroVisibleChecked}> {t}Visible for user{/t}
                                </td>
                        </tr>
                        </table>
@@ -51,7 +56,7 @@
 <br>
 {t}Macro text{/t}
 <br>
-<textarea name="goFonMacroContent" style="width:99%;height:300px;font-size:14px;font-family:Arial;">{$goFonMacroContent}</textarea>
+<textarea name="goFonMacroContent" style="width:99%;height:300px;font-size:14px;font-family:Arial;" {$goFonMacroContentACL}>{$goFonMacroContent}</textarea>
 
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">