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/lists/folder_grey.png'}
49 <input type="image" name="chooseBase" src="images/lists/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
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 $multiple_support}
78 <tr>
79 <td colspan=2>
80 {render acl=$sambaGroupTypeACL checkbox=$multiple_support checked=$use_smbgroup}
81 <input class="center" type=checkbox name="smbgroup" value="1" {$smbgroup}>{t}Select to create a samba conform group{/t}
82 {/render}
83 </td>
84 </tr>
85 <tr>
86 <td colspan=2>
87 {render acl=$sambaGroupTypeACL checkbox=$multiple_support checked=$use_groupType}
88 <select size="1" name="groupType">
89 {html_options options=$groupTypes selected=$groupType}
90 </select>
91 {/render}
92
93 <LABEL for="">{t}in domain{/t}</LABEL>
94
96 {render acl=$sambaDomainNameACL checkbox=$multiple_support checked=$use_sambaDomainName}
97 <select id="sambaDomainName" size="1" name="sambaDomainName">
98 {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
99 </select>
100 {/render}
101 </td>
102 </tr>
104 {else}
105 <tr>
106 <td colspan=2>
107 {render acl=$sambaGroupTypeACL}
108 <input type=checkbox name="smbgroup" value="1" {$smbgroup} title="{t}Select to create a samba conform group{/t}">
109 {/render}
110 {render acl=$sambaGroupTypeACL}
111 <select size="1" name="groupType">
112 {html_options options=$groupTypes selected=$groupType}
113 </select>
114 {/render}
115
116 <LABEL for="">{t}in domain{/t}</LABEL>
117
118 {render acl=$sambaDomainNameACL}
119 <select id="sambaDomainName" size="1" name="sambaDomainName">
120 {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
121 </select>
122 {/render}
123 </td>
124 </tr>
125 {/if}
127 {if $pickupGroup == "true"}
128 <tr>
129 <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
130 </tr>
131 <tr>
132 <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
133 </tr>
134 <tr>
135 <td colspan=2>
136 {render acl=$fonGroupACL checkbox=$multiple_support checked=$use_fon_group}
137 <input class="center" type=checkbox name="fon_group" value="1" {$fon_group}>{t}Members are in a phone pickup group{/t}
138 {/render}
139 </td>
140 </tr>
141 {/if}
142 {if $nagios == "true"}
143 <tr>
144 <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
145 </tr>
146 <tr>
147 <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
148 </tr>
149 <tr>
150 <td colspan=2>
151 {render acl=$nagiosGroupACL checkbox=$multiple_support checked=$use_nagios_group}
152 <input class="center" type=checkbox name="nagios_group" value="1" {$nagios_group}>{t}Members are in a nagios group{/t}
153 {/render}
154 </td>
155 </tr>
156 {/if}
157 <tr>
158 <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
159 </tr>
160 <tr>
161 <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
162 </tr>
163 {if !$multiple_support}
164 <tr>
165 <td colspan="2">
166 {t}Trust mode{/t}
167 {render acl=$trustmodeACL}
168 <select name="trustmode" id="trustmode" size=1
169 onChange="changeSelectState('trustmode', 'wslist');
170 changeSelectState('trustmode', 'add_ws');
171 changeSelectState('trustmode', 'del_ws');">
172 {html_options options=$trustmodes selected=$trustmode}
173 </select>
174 {/render}
175 {render acl=$trustmodeACL}
176 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
177 {html_options values=$workstations output=$workstations}
178 {if $emptyArrAccess}
179 <option disabled> </option>
180 {/if}
181 </select>
182 {/render}
183 <br>
184 {render acl=$trustmodeACL}
185 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
186 {/render}
187 {render acl=$trustmodeACL}
188 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
189 {/render}
191 </td>
192 </tr>
194 {else}
196 <tr>
197 <td colspan="2">
198 <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
199 class="center" onClick="GOsa_toggle('div_trustmode');">
200 {t}Trust mode{/t}
201 <div {if !$use_trustmode} style="visibility:hidden;" {/if} id="div_trustmode">
202 {render acl=$trustmodeACL}
203 <select name="trustmode" id="trustmode" size=1
204 onChange="changeSelectState('trustmode', 'wslist');
205 changeSelectState('trustmode', 'add_ws');
206 changeSelectState('trustmode', 'del_ws');">
207 {html_options options=$trustmodes selected=$trustmode}
208 </select>
209 {/render}
210 {render acl=$trustmodeACL}
211 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
212 {html_options values=$workstations output=$workstations}
213 {if $emptyArrAccess}
214 <option disabled> </option>
215 {/if}
216 </select>
217 {/render}
218 <br>
219 {render acl=$trustmodeACL}
220 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
221 {/render}
222 {render acl=$trustmodeACL}
223 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
224 {/render}
225 </div>
226 </td>
227 </tr>
229 {/if}
230 </table>
232 </td>
233 <td style="border-left:1px solid #A0A0A0">
234
235 </td>
237 <td style="vertical-align:top;">
239 <table summary="" style="width:100%">
240 <tr>
241 <td style="vertical-align:top; width:50%">
242 <b><LABEL for="members">{t}Group members{/t}</LABEL></b>
243 <br>
244 {render acl=$memberUidACL}
246 {if $multiple_support}
247 <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
248 {foreach from=$memberUid_All item=name key=key}
249 <option value="{$key}">{$name} ({t}In all groups{/t})</option>
250 {/foreach}
251 {foreach from=$memberUid_Some item=name key=key}
252 <option value="{$key}" style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$name} ({t}Not in all groups{/t})</option>
253 {/foreach}
254 </select>
255 {else}
256 <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
257 {html_options options=$members}
258 <option disabled> </option>
259 </select>
260 {/if}
261 {/render}
262 <br>
263 {render acl=$memberUidACL}
264 <input type=submit name="edit_membership" value="{msgPool type=addButton}">
265 {/render}
266
267 {render acl=$memberUidACL}
268 <input type=submit name="del_users" value="{msgPool type=delButton}">
269 {/render}
270 </td>
271 </tr>
272 </table>
273 </td>
275 </tr>
276 </table>
278 <input type="hidden" name="groupedit" value="1">
280 <!-- Place cursor -->
281 <script language="JavaScript" type="text/javascript">
282 <!-- // First input field on page
283 focus_field('cn');
284 -->
285 </script>