diff --git a/gosa-core/plugins/admin/groups/generic.tpl b/gosa-core/plugins/admin/groups/generic.tpl
index 5c716d99e475f5bb39f0bcfc70380d03e4e2934b..1e3f96252dbe4f1d59fa962d357bab10b1e19f2e 100644 (file)
{if $multiple_support}
<input type="hidden" value="1" name="group_mulitple_edit">
{if $multiple_support}
<input type="hidden" value="1" name="group_mulitple_edit">
-{/if }
+{/if}
<table summary="" style="width:100%;">
<tr>
<table summary="" style="width:100%;">
<tr>
- <td style="width:50%; vertical-align:top;">
+ <td style="width:50%">
<table summary="" style="width:100%">
<tr>
<td><LABEL for="cn">{t}Group name{/t}</LABEL>{$must}</td>
<td>
{if $multiple_support}
<table summary="" style="width:100%">
<tr>
<td><LABEL for="cn">{t}Group name{/t}</LABEL>{$must}</td>
<td>
{if $multiple_support}
- <input id="dummy1" name="dummy1" size=25 maxlength=60 value="{t}Multiple edit{/t}" disabled>
+ <input type='text' id="dummy1" name="dummy1" size=25 maxlength=60 value="{t}Multiple edit{/t}" disabled>
{else}
{render acl=$cnACL}
{else}
{render acl=$cnACL}
- <input id="cn" name="cn" size=25 maxlength=60 value="{$cn}" title="{t}Posix name of the group{/t}">
+ <input type='text' id="cn" name="cn" size=25 maxlength=60 value="{$cn}" title="{t}Posix name of the group{/t}">
{/render}
{/if}
</td>
{/render}
{/if}
</td>
</td>
<td>
{render acl=$descriptionACL checkbox=$multiple_support checked=$use_description}
</td>
<td>
{render acl=$descriptionACL checkbox=$multiple_support checked=$use_description}
- <input id="description" name="description" size=40 maxlength=80 value="{$description}" title="{t}Descriptive text for this group{/t}">
+ <input type='text' id="description" name="description" size=40 maxlength=80 value="{$description}" title="{t}Descriptive text for this group{/t}">
{/render}
</td>
</tr>
{/render}
</td>
</tr>
</td>
<td>
{render acl=$baseACL checkbox=$multiple_support checked=$use_base}
</td>
<td>
{render acl=$baseACL checkbox=$multiple_support checked=$use_base}
- <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}">
+ {$base}
{/render}
</td>
</tr>
{/render}
</td>
</tr>
<LABEL for="gidNumber">{t}Force GID{/t}</LABEL>
{render acl=$gidNumberACL}
<LABEL for="gidNumber">{t}Force GID{/t}</LABEL>
{render acl=$gidNumberACL}
- <input name="gidNumber" size=9 maxlength=9 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
+ <input type='text' name="gidNumber" size=9 maxlength=9 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
{/render}
</td>
</tr>
{/if}
{/render}
</td>
</tr>
{/if}
-{if $samba3 ne ""}
-
{if $multiple_support}
<tr>
<td colspan=2>
{if $multiple_support}
<tr>
<td colspan=2>
</td>
</tr>
{/if}
</td>
</tr>
{/if}
-{/if}
{if $pickupGroup == "true"}
<tr>
{if $pickupGroup == "true"}
<tr>
</tr>
<tr>
<td colspan=2>
</tr>
<tr>
<td colspan=2>
-{render acl=$nagiosGroupACL}
- <input type=checkbox name="nagios_group" value="1" {$nagios_group}>{t}Members are in a nagios group{/t}
+{render acl=$nagiosGroupACL checkbox=$multiple_support checked=$use_nagios_group}
+ <input class="center" type=checkbox name="nagios_group" value="1" {$nagios_group}>{t}Members are in a nagios group{/t}
{/render}
</td>
</tr>
{/if}
{/render}
</td>
</tr>
{/if}
+ <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>
+{if !$multiple_support}
+ <tr>
+ <td colspan="2">
+ {t}Trust mode{/t}
+ {render acl=$trustmodeACL}
+ <select name="trustmode" id="trustmode" size=1
+ onChange="changeSelectState('trustmode', 'wslist');
+ changeSelectState('trustmode', 'add_ws');
+ changeSelectState('trustmode', 'del_ws');">
+ {html_options options=$trustmodes selected=$trustmode}
+ </select>
+ {/render}
+ {render acl=$trustmodeACL}
+ <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
+ {html_options values=$workstations output=$workstations}
+ {if $emptyArrAccess}
+ <option disabled> </option>
+ {/if}
+ </select>
+ {/render}
+ <br>
+ {render acl=$trustmodeACL}
+ <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
+ {/render}
+ {render acl=$trustmodeACL}
+ <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
+ {/render}
+
+ </td>
+ </tr>
+
+{else}
+
+ <tr>
+ <td colspan="2">
+ <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
+ class="center" onClick="$('div_trustmode').toggle();">
+ {t}Trust mode{/t}
+ <div {if !$use_trustmode} style="display: none;" {/if} id="div_trustmode">
+ {render acl=$trustmodeACL}
+ <select name="trustmode" id="trustmode" size=1
+ onChange="changeSelectState('trustmode', 'wslist');
+ changeSelectState('trustmode', 'add_ws');
+ changeSelectState('trustmode', 'del_ws');">
+ {html_options options=$trustmodes selected=$trustmode}
+ </select>
+ {/render}
+ {render acl=$trustmodeACL}
+ <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
+ {html_options values=$workstations output=$workstations}
+ {if $emptyArrAccess}
+ <option disabled> </option>
+ {/if}
+ </select>
+ {/render}
+ <br>
+ {render acl=$trustmodeACL}
+ <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
+ {/render}
+ {render acl=$trustmodeACL}
+ <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
+ {/render}
+ </div>
+ </td>
+ </tr>
+
+{/if}
</table>
</td>
</table>
</td>
</td>
</td>
- <td style="vertical-align:top;">
+ <td>
<table summary="" style="width:100%">
<tr>
<table summary="" style="width:100%">
<tr>
- <td style="vertical-align:top; width:50%">
+ <td style="width:50%">
<b><LABEL for="members">{t}Group members{/t}</LABEL></b>
<br>
{render acl=$memberUidACL}
<b><LABEL for="members">{t}Group members{/t}</LABEL></b>
<br>
{render acl=$memberUidACL}
+
+ {if $multiple_support}
+ <select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
+ {foreach from=$memberUid_All item=name key=key}
+ <option value="{$key}">{$name} ({t}In all groups{/t})</option>
+ {/foreach}
+ {foreach from=$memberUid_Some item=name key=key}
+ <option value="{$key}" style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$name} ({t}Not in all groups{/t})</option>
+ {/foreach}
+ </select>
+ {else}
<select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
{html_options options=$members}
<option disabled> </option>
</select>
<select style="width:100%; height:380px;" id="members" name="members[]" size=15 multiple>
{html_options options=$members}
<option disabled> </option>
</select>
+ {/if}
{/render}
<br>
{/render}
<br>
- <input type=submit name="edit_membership" value="{t}Add{/t}">
+{render acl=$memberUidACL}
+ <input type=submit name="edit_membership" value="{msgPool type=addButton}">
+{/render}
- <input type=submit name="del_users" value="{t}Delete{/t}">
+{render acl=$memberUidACL}
+ <input type=submit name="del_users" value="{msgPool type=delButton}">
+{/render}
</td>
</tr>
</table>
</td>
</tr>
</table>