Code

Updated groups
[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/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       &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 checkbox=$multiple_support checked=$use_nagios_group}
155       <input class="center" 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     <tr>
161       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
162     </tr>
163     <tr>
164       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
165     </tr>
166 {if !$multiple_support}
167         <tr>
168          <td colspan="2">
169                     {t}Trust mode{/t}&nbsp;
170     {render acl=$trustmodeACL}
171         <select name="trustmode" id="trustmode" size=1
172             onChange="changeSelectState('trustmode', 'wslist');
173                       changeSelectState('trustmode', 'add_ws');
174                       changeSelectState('trustmode', 'del_ws');">
175           {html_options options=$trustmodes selected=$trustmode}
176         </select>
177     {/render}
178     {render acl=$trustmodeACL}
179        <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
180         {html_options values=$workstations output=$workstations}
181         {if $emptyArrAccess}
182             <option disabled>&nbsp;</option>
183         {/if}
184        </select>
185     {/render}
186        <br>
187     {render acl=$trustmodeACL}
188        <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>&nbsp;
189     {/render}
190     {render acl=$trustmodeACL}
191        <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
192     {/render}
194          </td>
195         </tr>
197 {else}
199         <tr>
200          <td colspan="2">
201     <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
202         class="center" onClick="toggle('div_trustmode');">
203                     {t}Trust mode{/t}&nbsp;
204         <div {if !$use_trustmode} style="visibility:hidden;" {/if} id="div_trustmode">
205     {render acl=$trustmodeACL}
206         <select name="trustmode" id="trustmode" size=1
207             onChange="changeSelectState('trustmode', 'wslist');
208                       changeSelectState('trustmode', 'add_ws');
209                       changeSelectState('trustmode', 'del_ws');">
210           {html_options options=$trustmodes selected=$trustmode}
211         </select>
212     {/render}
213     {render acl=$trustmodeACL}
214        <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
215         {html_options values=$workstations output=$workstations}
216         {if $emptyArrAccess}
217             <option disabled>&nbsp;</option>
218         {/if}
219        </select>
220     {/render}
221        <br>
222     {render acl=$trustmodeACL}
223        <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>&nbsp;
224     {/render}
225     {render acl=$trustmodeACL}
226        <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
227     {/render}
228                 </div>
229          </td>
230         </tr>
232 {/if}
233    </table>
235   </td>
236   <td style="border-left:1px solid #A0A0A0">
237    &nbsp;
238   </td>
240   <td style="vertical-align:top;">
242    <table summary="" style="width:100%">
243     <tr>
244      <td style="vertical-align:top; width:50%">
245       <b><LABEL for="members">{t}Group members{/t}</LABEL></b>
246       <br>
247 {render acl=$memberUidACL}
249         {if $multiple_support}
250           <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
251                 {foreach from=$memberUid_All item=name key=key}
252                         <option value="{$key}">{$name}&nbsp;({t}In all groups{/t})</option>
253                 {/foreach}
254                 {foreach from=$memberUid_Some item=name key=key}
255         <option value="{$key}" style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$name}&nbsp;({t}Not in all groups{/t})</option>
256                 {/foreach}
257           </select>
258         {else}
259       <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
260        {html_options options=$members}
261                 <option disabled>&nbsp;</option>
262       </select>
263         {/if}
264 {/render}
265       <br>
266 {render acl=$memberUidACL}
267       <input type=submit name="edit_membership" value="{msgPool type=addButton}">
268 {/render}
269       &nbsp;
270 {render acl=$memberUidACL}
271       <input type=submit name="del_users" value="{msgPool type=delButton}">
272 {/render}
273      </td>
274     </tr> 
275    </table>
276   </td>
278  </tr>
279 </table>
281 <input type="hidden" name="groupedit" value="1">
283 <!-- Place cursor -->
284 <script language="JavaScript" type="text/javascript">
285   <!-- // First input field on page
286         focus_field('cn');
287   -->
288 </script>