Code

Updated css und div framework.
[gosa.git] / plugins / admin / groups / generic.tpl
index 917ef2f26371413152fe9431732a40425847e6b6..141bcbf58533c502f6d71e7c5ebaed7694bf54a1 100644 (file)
@@ -1,28 +1,44 @@
-<table style="width:100%;">
+<table summary="" style="width:100%;">
  <tr>
   <td style="width:50%; vertical-align:top;">
-   <input type="hidden" name="groupedit" value="1">
-   <table>
+   <table summary="" style="width:100%">
     <tr>
-     <td>{t}Group name{/t}{$must}</td>
+     <td><LABEL for="cn">{t}Group name{/t}</LABEL>{$must}</td>
      <td>
-       <input name="cn" size=25 maxlength=60 {$cnACL} value="{$cn}" title="{t}Posix name of the group{/t}">
+{render acl=$cnACL}
+       <input id="cn" name="cn" size=25 maxlength=60 value="{$cn}" title="{t}Posix name of the group{/t}">
+{/render}
      </td>
     </tr>
     <tr>
-     <td>{t}Description{/t}</td>
-     <td><input name="description" size=40 maxlength=60 {$descriptionACL} value="{$description}" title="{t}Descriptive text for this group{/t}">
+     <td>
+      <LABEL for="description">{t}Description{/t}</LABEL>
+     </td>
+     <td>
+{render acl=$descriptionACL}
+      <input id="description" name="description" size=40 maxlength=80 value="{$description}" title="{t}Descriptive text for this group{/t}">
+{/render}
      </td>
     </tr>
     <tr>
-      <td colspan=2> <div style="height:15px;"></div> </td>
+     <td colspan=2> 
+      <div style="height:15px;"></div> 
+     </td>
     </tr>
     <tr>
-     <td>{t}Base{/t}{$must}</td>
      <td>
-      <select size="1" name="base" {$baseACL} title="{t}Choose subtree to place group in{/t}">
+      <LABEL for="base">{t}Base{/t}</LABEL>{$must}
+     </td>
+     <td>
+{render acl=$baseACL}
+      <select id="base" size="1" name="base" title="{t}Choose subtree to place group in{/t}">
        {html_options options=$bases selected=$base_select}
       </select>
+{/render}
+
+{render acl=$baseACL disable_picture='images/folder_gray.png'}
+       <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+{/render}
      </td>
     </tr>
     <tr>
     </tr>
     <tr>
      <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')">{t}Force GID{/t}
+{render acl=$gidNumberACL}
+      <input type=checkbox name="force_gid" value="1" title="{t}Normally IDs are autogenerated, select to specify manually{/t}" 
+       {$force_gid} onclick="changeState('gidNumber')">
+{/render}
+       <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}">
+{render acl=$gidNumberACL}
+      <input name="gidNumber" size=5 maxlength=5 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
+{/render}
      </td>
     </tr>
 
     {if $samba3 ne ""}
     <tr>
      <td colspan=2>
-      <input type=checkbox name="smbgroup" value="1" {$smbgroup} {$smbgroupACL} title="{t}Select to create a samba conform group{/t}">
-      <select size="1" name="groupType" {$sambaDomainNameACL}>
+{render acl=$sambaGroupTypeACL}
+      <input type=checkbox name="smbgroup" value="1" {$smbgroup}  title="{t}Select to create a samba conform group{/t}">
+{/render}
+{render acl=$sambaGroupTypeACL}
+      <select size="1" name="groupType">
        {html_options options=$groupTypes selected=$groupType}
       </select>
+{/render}
       &nbsp;
-      {t}in domain{/t}
+      <LABEL for="">{t}in domain{/t}</LABEL>
       &nbsp;
-      <select size="1" name="sambaDomainName" {$sambaDomainNameACL}>
+{render acl=$sambaDomainNameACL}
+      <select id="sambaDomainName" size="1" name="sambaDomainName">
        {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
       </select>
+{/render}
      </td>
     </tr>
     {/if}
+       {if $pickupGroup == "true"}
+    <tr>
+      <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
+    </tr>
+    <tr>
+      <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
+    </tr>
+    <tr>
+     <td colspan=2>
+{render acl=$fonGroupACL}
+      <input type=checkbox name="fon_group" value="1" {$fon_group}>{t}Members are in a phone pickup group{/t}
+{/render}
+     </td>
+    </tr>
+       {/if}
+       {if $nagios == "true"}
     <tr>
       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
     </tr>
     </tr>
     <tr>
      <td colspan=2>
-      <input type=checkbox name="fon_group" value="1" {$fon_group} {$fon_groupACL}>{t}Members are in a phone pickup group{/t}
+{render acl=$nagiosGroupACL}
+      <input type=checkbox name="nagios_group" value="1" {$nagios_group}>{t}Members are in a nagios group{/t}
+{/render}
      </td>
     </tr>
+       {/if}
    </table>
 
   </td>
 
   <td style="vertical-align:top;">
 
-   <table>
+   <table summary="" style="width:100%">
     <tr>
-     <td style="vertical-align:top;">
-      <b>{t}Group members{/t}</b>
+     <td style="vertical-align:top; width:50%">
+      <b><LABEL for="members">{t}Group members{/t}</LABEL></b>
       <br>
-      <select style="width:400px; height:300px;" name="members[]" size=15 multiple>
+{render acl=$memberUidACL}
+      <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
        {html_options options=$members}
-               <option disabled></option>
+               <option disabled>&nbsp;</option>
       </select>
+{/render}
       <br>
-      <input type=submit name="edit_membership" value="{t}Add{/t}" {$membersACL}>
+      <input type=submit name="edit_membership" value="{t}Add{/t}">
       &nbsp;
-      <input type=submit name="del_users" value="{t}Delete{/t}" {$membersACL}>
+      <input type=submit name="del_users" value="{t}Delete{/t}">
      </td>
     </tr> 
    </table>
  </tr>
 </table>
 
+<input type="hidden" name="groupedit" value="1">
+
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page