Code

Updated headers
[gosa.git] / gosa-core / plugins / admin / groups / generic.tpl
1 {if $multiple_support}
2 <input type="hidden" value="1" name="group_mulitple_edit">
3 {/if }
6 <table summary="" style="width:100%;">
7  <tr>
8   <td style="width:50%; vertical-align:top;">
9    <table summary="" style="width:100%">
10     <tr>
11      <td><LABEL for="cn">{t}Group name{/t}</LABEL>{$must}</td>
12      <td>
13 {if $multiple_support}
14         <input id="dummy1" name="dummy1" size=25 maxlength=60 value="{t}Multiple edit{/t}" disabled>
15 {else}
16 {render acl=$cnACL}
17        <input id="cn" name="cn" size=25 maxlength=60 value="{$cn}" title="{t}Posix name of the group{/t}">
18 {/render}
19 {/if}
20      </td>
21     </tr>
22     <tr>
23      <td>
24       <LABEL for="description">{t}Description{/t}</LABEL>
25      </td>
26      <td>
27 {render acl=$descriptionACL checkbox=$multiple_support checked=$use_description}
28       <input id="description" name="description" size=40 maxlength=80 value="{$description}" title="{t}Descriptive text for this group{/t}">
29 {/render}
30      </td>
31     </tr>
32     <tr>
33      <td colspan=2> 
34       <div style="height:15px;"></div> 
35      </td>
36     </tr>
37     <tr>
38      <td>
39       <LABEL for="base">{t}Base{/t}</LABEL>{$must}
40      </td>
41      <td>
42 {render acl=$baseACL checkbox=$multiple_support checked=$use_base}
43       <select id="base" size="1" name="base" title="{t}Choose subtree to place group in{/t}">
44        {html_options options=$bases selected=$base_select}
45       </select>
46 {/render}
48 {render acl=$baseACL disable_picture='images/folder_gray.png'}
49         <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
50 {/render}
51      </td>
52     </tr>
53     <tr>
54       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
55     </tr>
56     <tr>
57       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
58     </tr>
59 {if $multiple_support}
61 {else}
62     <tr>
63      <td colspan=2>
64 {render acl=$gidNumberACL}
65       <input type=checkbox name="force_gid" value="1" title="{t}Normally IDs are autogenerated, select to specify manually{/t}" 
66         {$force_gid} onclick="changeState('gidNumber')">
67 {/render}
68         <LABEL for="gidNumber">{t}Force GID{/t}</LABEL>
69       &nbsp;
70 {render acl=$gidNumberACL}
71       <input name="gidNumber" size=9 maxlength=9 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
72 {/render}
73      </td>
74     </tr>
75 {/if}
77 {if $samba3 ne ""}
79 {if $multiple_support}
80     <tr>
81     <td colspan=2>
82                 {render acl=$sambaGroupTypeACL checkbox=$multiple_support checked=$use_smbgroup}
83                         <input class="center" type=checkbox name="smbgroup" value="1" {$smbgroup}>{t}Select to create a samba conform group{/t}
84                 {/render}
85         </td>
86         </tr>
87         <tr>
88         <td colspan=2>
89                 {render acl=$sambaGroupTypeACL checkbox=$multiple_support checked=$use_groupType}
90                         <select size="1" name="groupType">
91                                 {html_options options=$groupTypes selected=$groupType}
92                         </select>
93                 {/render}
94       &nbsp;
95       <LABEL for="">{t}in domain{/t}</LABEL>
96       &nbsp;
98                 {render acl=$sambaDomainNameACL checkbox=$multiple_support checked=$use_sambaDomainName}
99                         <select id="sambaDomainName" size="1" name="sambaDomainName">
100                                 {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
101                         </select>
102                 {/render}
103         </td>
104         </tr>
106 {else}
107     <tr>
108      <td colspan=2>
109 {render acl=$sambaGroupTypeACL}
110       <input type=checkbox name="smbgroup" value="1" {$smbgroup}  title="{t}Select to create a samba conform group{/t}">
111 {/render}
112 {render acl=$sambaGroupTypeACL}
113       <select size="1" name="groupType">
114        {html_options options=$groupTypes selected=$groupType}
115       </select>
116 {/render}
117       &nbsp;
118       <LABEL for="">{t}in domain{/t}</LABEL>
119       &nbsp;
120 {render acl=$sambaDomainNameACL}
121       <select id="sambaDomainName" size="1" name="sambaDomainName">
122        {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
123       </select>
124 {/render}
125      </td>
126     </tr>
127     {/if}
128 {/if}
130         {if $pickupGroup == "true"}
131     <tr>
132       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
133     </tr>
134     <tr>
135       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
136     </tr>
137     <tr>
138      <td colspan=2>
139 {render acl=$fonGroupACL checkbox=$multiple_support checked=$use_fon_group}
140       <input class="center" type=checkbox name="fon_group" value="1" {$fon_group}>{t}Members are in a phone pickup group{/t}
141 {/render}
142      </td>
143     </tr>
144         {/if}
145         {if $nagios == "true"}
146     <tr>
147       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
148     </tr>
149     <tr>
150       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
151     </tr>
152     <tr>
153      <td colspan=2>
154 {render acl=$nagiosGroupACL}
155       <input type=checkbox name="nagios_group" value="1" {$nagios_group}>{t}Members are in a nagios group{/t}
156 {/render}
157      </td>
158     </tr>
159         {/if}
160    </table>
162   </td>
163   <td style="border-left:1px solid #A0A0A0">
164    &nbsp;
165   </td>
167   <td style="vertical-align:top;">
169    <table summary="" style="width:100%">
170     <tr>
171      <td style="vertical-align:top; width:50%">
172       <b><LABEL for="members">{t}Group members{/t}</LABEL></b>
173       <br>
174 {render acl=$memberUidACL}
176         {if $multiple_support}
177           <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
178                 {foreach from=$memberUid_All item=name key=key}
179                         <option value="{$key}">{$name}&nbsp;({t}In all groups{/t})</option>
180                 {/foreach}
181                 {foreach from=$memberUid_Some item=name key=key}
182         <option value="{$key}" style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$name}&nbsp;({t}Not in all groups{/t})</option>
183                 {/foreach}
184           </select>
185         {else}
186       <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
187        {html_options options=$members}
188                 <option disabled>&nbsp;</option>
189       </select>
190         {/if}
191 {/render}
192       <br>
193       <input type=submit name="edit_membership" value="{t}Add{/t}">
194       &nbsp;
195       <input type=submit name="del_users" value="{t}Delete{/t}">
196      </td>
197     </tr> 
198    </table>
199   </td>
201  </tr>
202 </table>
204 <input type="hidden" name="groupedit" value="1">
206 <!-- Place cursor -->
207 <script language="JavaScript" type="text/javascript">
208   <!-- // First input field on page
209         focus_field('cn');
210   -->
211 </script>