Code

Udpated JS focus,
[gosa.git] / plugins / admin / groups / generic.tpl
index e6e786044b4d6fb4c7451094e37eca1974a11c97..1fd62e6c6ff7c3683aed66f0b16cf67408e0f097 100644 (file)
@@ -2,7 +2,7 @@
  <tr>
   <td style="width:50%; vertical-align:top;">
    <input type="hidden" name="groupedit" value="1">
-   <table summary="">
+   <table summary="" style="width:100%">
     <tr>
      <td><LABEL for="cn">{t}Group name{/t}</LABEL>{$must}</td>
      <td>
@@ -11,7 +11,7 @@
     </tr>
     <tr>
      <td><LABEL for="description"> {t}Description{/t}</LABEL></td>
-     <td><input id="description" name="description" size=40 maxlength=60 {$descriptionACL} value="{$description}" title="{t}Descriptive text for this group{/t}">
+     <td><input id="description" name="description" size=40 maxlength=80 {$descriptionACL} value="{$description}" title="{t}Descriptive text for this group{/t}">
      </td>
     </tr>
     <tr>
       <select id="base" size="1" name="base" {$baseACL} title="{t}Choose subtree to place group in{/t}">
        {html_options options=$bases selected=$base_select}
       </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>
     <tr>
@@ -35,7 +40,7 @@
      <td colspan=2>
       <input type=checkbox name="force_gid" value="1" title="{t}Normally IDs are autogenerated, select to specify manually{/t}" {$force_gid} {$force_gidACL} onclick="changeState('gidNumber')"><LABEL for="gidNumber">{t}Force GID{/t}</LABEL>
       &nbsp;
-      <input name="gidNumber" size=5 maxlength=5 id="gidNumber" {$gidNumberACL} {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
+      <input name="gidNumber" size=12 maxlength=9 id="gidNumber" {$gidNumberACL} {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
      </td>
     </tr>
 
@@ -55,6 +60,7 @@
      </td>
     </tr>
     {/if}
+       {if $pickupGroup == "true"}
     <tr>
       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
     </tr>
@@ -66,6 +72,8 @@
       <input type=checkbox name="fon_group" value="1" {$fon_group} {$fon_groupACL}>{t}Members are in a phone pickup group{/t}
      </td>
     </tr>
+       {/if}
+       {if $nagios == "true"}
     <tr>
       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
     </tr>
@@ -77,6 +85,7 @@
       <input type=checkbox name="nagios_group" value="1" {$nagios_group} {$nagios_groupACL}>{t}Members are in a nagios group{/t}
      </td>
     </tr>
+       {/if}
    </table>
 
   </td>
 
   <td style="vertical-align:top;">
 
-   <table summary="">
+   <table summary="" style="width:100%">
     <tr>
-     <td style="vertical-align:top;">
+     <td style="vertical-align:top; width:50%">
       <b><LABEL for="members">{t}Group members{/t}</LABEL></b>
       <br>
-      <select style="width:400px; height:300px;" id="members" name="members[]" size=15 multiple>
+      <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
        {html_options options=$members}
                <option disabled>&nbsp;</option>
       </select>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>