Code

Removed empty images
[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%">
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 type='text' id="dummy1" name="dummy1" size=25 maxlength=60 value="{t}Multiple edit{/t}" disabled>
15 {else}
16 {render acl=$cnACL}
17        <input type='text' 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 type='text' 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        {$base}
44 {/render}
45      </td>
46     </tr>
47     <tr>
48       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
49     </tr>
50     <tr>
51       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
52     </tr>
53 {if $multiple_support}
55 {else}
56     <tr>
57      <td colspan=2>
58 {render acl=$gidNumberACL}
59       <input type=checkbox name="force_gid" value="1" title="{t}Normally IDs are autogenerated, select to specify manually{/t}" 
60         {$force_gid} onclick="changeState('gidNumber')">
61 {/render}
62         <LABEL for="gidNumber">{t}Force GID{/t}</LABEL>
63       &nbsp;
64 {render acl=$gidNumberACL}
65       <input type='text' name="gidNumber" size=9 maxlength=9 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
66 {/render}
67      </td>
68     </tr>
69 {/if}
71 {if $multiple_support}
72     <tr>
73     <td colspan=2>
74                 {render acl=$sambaGroupTypeACL checkbox=$multiple_support checked=$use_smbgroup}
75                         <input class="center" type=checkbox name="smbgroup" value="1" {$smbgroup}>{t}Select to create a samba conform group{/t}
76                 {/render}
77         </td>
78         </tr>
79         <tr>
80         <td colspan=2>
81                 {render acl=$sambaGroupTypeACL checkbox=$multiple_support checked=$use_groupType}
82                         <select size="1" name="groupType">
83                                 {html_options options=$groupTypes selected=$groupType}
84                         </select>
85                 {/render}
86       &nbsp;
87       <LABEL for="">{t}in domain{/t}</LABEL>
88       &nbsp;
90                 {render acl=$sambaDomainNameACL checkbox=$multiple_support checked=$use_sambaDomainName}
91                         <select id="sambaDomainName" size="1" name="sambaDomainName">
92                                 {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
93                         </select>
94                 {/render}
95         </td>
96         </tr>
98 {else}
99     <tr>
100      <td colspan=2>
101 {render acl=$sambaGroupTypeACL}
102       <input type=checkbox name="smbgroup" value="1" {$smbgroup}  title="{t}Select to create a samba conform group{/t}">
103 {/render}
104 {render acl=$sambaGroupTypeACL}
105       <select size="1" name="groupType">
106        {html_options options=$groupTypes selected=$groupType}
107       </select>
108 {/render}
109       &nbsp;
110       <LABEL for="">{t}in domain{/t}</LABEL>
111       &nbsp;
112 {render acl=$sambaDomainNameACL}
113       <select id="sambaDomainName" size="1" name="sambaDomainName">
114        {html_options values=$sambaDomains output=$sambaDomains selected=$sambaDomainName}
115       </select>
116 {/render}
117      </td>
118     </tr>
119     {/if}
121         {if $pickupGroup == "true"}
122     <tr>
123       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
124     </tr>
125     <tr>
126       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
127     </tr>
128     <tr>
129      <td colspan=2>
130 {render acl=$fonGroupACL checkbox=$multiple_support checked=$use_fon_group}
131       <input class="center" type=checkbox name="fon_group" value="1" {$fon_group}>{t}Members are in a phone pickup group{/t}
132 {/render}
133      </td>
134     </tr>
135         {/if}
136         {if $nagios == "true"}
137     <tr>
138       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
139     </tr>
140     <tr>
141       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
142     </tr>
143     <tr>
144      <td colspan=2>
145 {render acl=$nagiosGroupACL checkbox=$multiple_support checked=$use_nagios_group}
146       <input class="center" type=checkbox name="nagios_group" value="1" {$nagios_group}>{t}Members are in a nagios group{/t}
147 {/render}
148      </td>
149     </tr>
150         {/if}
151     <tr>
152       <td colspan=2> <div style="height:15px; width:100%; border-bottom:1px solid #909090;"></div> </td>
153     </tr>
154     <tr>
155       <td colspan=2> <div style="height:15px; width:100%;"></div> </td>
156     </tr>
157 {if !$multiple_support}
158         <tr>
159          <td colspan="2">
160                     {t}Trust mode{/t}&nbsp;
161     {render acl=$trustmodeACL}
162         <select name="trustmode" id="trustmode" size=1
163             onChange="changeSelectState('trustmode', 'wslist');
164                       changeSelectState('trustmode', 'add_ws');
165                       changeSelectState('trustmode', 'del_ws');">
166           {html_options options=$trustmodes selected=$trustmode}
167         </select>
168     {/render}
169     {render acl=$trustmodeACL}
170        <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
171         {html_options values=$workstations output=$workstations}
172         {if $emptyArrAccess}
173             <option disabled>&nbsp;</option>
174         {/if}
175        </select>
176     {/render}
177        <br>
178     {render acl=$trustmodeACL}
179        <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>&nbsp;
180     {/render}
181     {render acl=$trustmodeACL}
182        <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
183     {/render}
185          </td>
186         </tr>
188 {else}
190         <tr>
191          <td colspan="2">
192     <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
193         class="center" onClick="$('div_trustmode').toggle();">
194                     {t}Trust mode{/t}&nbsp;
195         <div {if !$use_trustmode} style="display: none;" {/if} id="div_trustmode">
196     {render acl=$trustmodeACL}
197         <select name="trustmode" id="trustmode" size=1
198             onChange="changeSelectState('trustmode', 'wslist');
199                       changeSelectState('trustmode', 'add_ws');
200                       changeSelectState('trustmode', 'del_ws');">
201           {html_options options=$trustmodes selected=$trustmode}
202         </select>
203     {/render}
204     {render acl=$trustmodeACL}
205        <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
206         {html_options values=$workstations output=$workstations}
207         {if $emptyArrAccess}
208             <option disabled>&nbsp;</option>
209         {/if}
210        </select>
211     {/render}
212        <br>
213     {render acl=$trustmodeACL}
214        <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>&nbsp;
215     {/render}
216     {render acl=$trustmodeACL}
217        <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
218     {/render}
219                 </div>
220          </td>
221         </tr>
223 {/if}
224    </table>
226   </td>
227   <td style="border-left:1px solid #A0A0A0">
228    &nbsp;
229   </td>
231   <td>
233    <table summary="" style="width:100%">
234     <tr>
235      <td style="width:50%">
236       <b><LABEL for="members">{t}Group members{/t}</LABEL></b>
237       <br>
238 {render acl=$memberUidACL}
240         {if $multiple_support}
241           <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
242                 {foreach from=$memberUid_All item=name key=key}
243                         <option value="{$key}">{$name}&nbsp;({t}In all groups{/t})</option>
244                 {/foreach}
245                 {foreach from=$memberUid_Some item=name key=key}
246         <option value="{$key}" style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$name}&nbsp;({t}Not in all groups{/t})</option>
247                 {/foreach}
248           </select>
249         {else}
250       <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
251        {html_options options=$members}
252                 <option disabled>&nbsp;</option>
253       </select>
254         {/if}
255 {/render}
256       <br>
257 {render acl=$memberUidACL}
258       <input type=submit name="edit_membership" value="{msgPool type=addButton}">
259 {/render}
260       &nbsp;
261 {render acl=$memberUidACL}
262       <input type=submit name="del_users" value="{msgPool type=delButton}">
263 {/render}
264      </td>
265     </tr> 
266    </table>
267   </td>
269  </tr>
270 </table>
272 <input type="hidden" name="groupedit" value="1">
274 <!-- Place cursor -->
275 <script language="JavaScript" type="text/javascript">
276   <!-- // First input field on page
277         focus_field('cn');
278   -->
279 </script>