Code

Udpated JS focus,
[gosa.git] / plugins / admin / applications / generic.tpl
index 91ee0a9805ce08bd06cde7c44c220da1be0d8f16..6c46c2bc96e149b5ab0079c98dcdaa4be4e7e7a2 100644 (file)
     <tr>
      <td><LABEL for="gosaApplicationExecute">{t}Execute{/t}{$must}</LABEL></td>
      <td>
-        <input id="gosaApplicationExecute" name="gosaApplicationExecute" size=35 maxlength=60 {$gosaApplicationExecuteACL} value="{$gosaApplicationExecute}" title="{t}Path and/or binary name of application{/t}">
+        <input id="gosaApplicationExecute" name="gosaApplicationExecute" size=35 maxlength=120 {$gosaApplicationExecuteACL} value="{$gosaApplicationExecute}" title="{t}Path and/or binary name of application{/t}">
      </td>
     </tr>
     <tr>
      <td><LABEL for="description">{t}Description{/t}</LABEL></td>
      <td>
-      <input id="description" name="description" size=35 maxlength=60 {$descriptionACL} value="{$description}">
+      <input id="description" name="description" size=35 maxlength=80 {$descriptionACL} value="{$description}">
      </td>
     </tr>
 
       <td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
       <td>
        <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}" 
-        {if $isReleaseApplikation} disabled {/if}>
+        {if $isReleaseApplikation} disabled {/if} {$baseACL}>
         {html_options options=$bases selected=$base_select}
        </select>
+               {if $baseACL == "" && !$isReleaseApplikation}
+            <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>
@@ -52,9 +58,9 @@
     </td>
     <td style="vertical-align:top">
     &nbsp;<br>
-    <input type="hidden" name="MAX_FILE_SIZE" value="100000">
-    <input name="picture_file" type="file" size="20" maxlength="255" accept="image/*.png" id="picture_file">
-    <input type="submit" name="update" value="{t}Update{/t}" title="{t}Reload picture from LDAP{/t}">
+    <input type="hidden" name="MAX_FILE_SIZE" value="100000" {$gosaApplicationIconACL}>
+    <input name="picture_file" type="file" size="20" maxlength="255" accept="image/*.png" id="picture_file" {$gosaApplicationIconACL}>
+    <input type="submit" name="update" value="{t}Update{/t}" title="{t}Reload picture from LDAP{/t}" {$gosaApplicationIconACL}>
     </td>
     </tr>
    </table>
        <tr>
                <td>
                        <h2><img src="images/fai_script.png" alt="{t}Script{/t}" align="middle">&nbsp;{t}Script{/t}</h2>
-                       <textarea name="gotoLogonScript" style='width:99%;height:220px;'>{$gotoLogonScript}</textarea>
-                       <input type="file" name="ScriptFile" value="{t}Import{/t}">
-                       <input type="submit" name="upLoad" value="{t}Upload{/t}">
+                       <textarea name="gotoLogonScript" style='width:99%;height:220px;' {$gotoLogonScriptACL}>{$gotoLogonScript}</textarea>
+                       <input type="file" name="ScriptFile" value="{t}Import{/t}" {$gotoLogonScriptACL}>
+                       <input type="submit" name="upLoad" value="{t}Upload{/t}" {$gotoLogonScriptACL}>
+                       <input type='submit' name='download' value='{t}Download{/t}'>
                </td>
        </tr>
 </table>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>