X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fgroups%2Fclass_groupManagement.inc;h=7e600b6bbb9ca3b5f23ef022d6bcfa7606bfd45c;hb=77208c980a6f8765532aa592fb3e467f731393cd;hp=c854ab2d1b6cb97115879aa223d6080026516361;hpb=6374534c6255a0f565080fd91c3c0b2e4f9f8f48;p=gosa.git
diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index c854ab2d1..7e600b6bb 100644
--- a/gosa-core/plugins/admin/groups/class_groupManagement.inc
+++ b/gosa-core/plugins/admin/groups/class_groupManagement.inc
@@ -23,7 +23,7 @@
class groupManagement extends management
{
var $plHeadline = "Groups";
- var $plDescription = "Group administration";
+ var $plDescription = "Manage aspects of groups like members, posix, desktop, samba and mail settings";
var $plIcon = "plugins/groups/images/plugin.png";
// Tab definition
@@ -64,6 +64,8 @@ class groupManagement extends management
parent::__construct($config, $ui, "groups", $headpage);
$this->registerAction("edit_group","editEntry");
+ $this->registerAction("edit_group_","editEntry");
+ $this->registerAction("edit_group__","editEntry");
$this->registerAction("edit_environment","editEntry");
$this->registerAction("edit_appgroup","editEntry");
$this->registerAction("edit_mailgroup","editEntry");
@@ -132,9 +134,8 @@ class groupManagement extends management
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
$str = management::editEntry($action,$target);
-
if(preg_match("/^edit_/",$action)){
- $tab = preg_replace("/^edit_/","",$action);
+ $tab = preg_replace("/^edit_([^_]*).*$/","\\1",$action);
if(isset($this->tabObject->by_object[$tab])){
$this->tabObject->current = $tab;
}else{
@@ -151,7 +152,7 @@ class groupManagement extends management
$map = array(
"posixGroup" =>
array(
- "image" => "plugins/groups/images/groups.png",
+ "image" => "plugins/groups/images/select_group.png",
"plugin" => "group",
"alt" => _("Posix"),
"title" => _("Edit posix properties")
@@ -168,7 +169,7 @@ class groupManagement extends management
"sambaGroupMapping" =>
array(
"image" => "plugins/groups/images/samba.png",
- "plugin" => "group",
+ "plugin" => "group_",
"alt" => _("Samba"),
"title" => _("Edit samba properties")
),
@@ -176,7 +177,7 @@ class groupManagement extends management
"goFonPickupGroup" =>
array(
"image" => "plugins/groups/images/asterisk.png",
- "plugin" => "group",
+ "plugin" => "group__",
"alt" => _("Phone"),
"title" => _("Edit phone properties")
),
@@ -202,11 +203,9 @@ class groupManagement extends management
// Walk thru map
foreach ($map as $oc => $properties) {
if (in_array_ics($oc, $classes)) {
- $result.="";
+ $result.= image($properties['image'], 'listing_edit_'.$properties['plugin'].'_'.$row, $properties['title']);
} else {
- $result.="
";
+ $result.= image('images/empty.png');
}
}
return $result;