From cd6552496428f711a8095061ff7c5f4f10ec130d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Oct 2009 16:51:53 +0000 Subject: [PATCH] Allow to create new deparmtments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14682 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_departmentManagement.inc | 14 ++++++ .../plugins/admin/departments/dep-list.xml | 49 +++++++++++++++++-- 2 files changed, 60 insertions(+), 3 deletions(-) diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc index db86b5faa..c875c546d 100644 --- a/gosa-core/plugins/admin/departments/class_departmentManagement.inc +++ b/gosa-core/plugins/admin/departments/class_departmentManagement.inc @@ -64,8 +64,22 @@ class departmentManagement extends management parent::__construct($config, $ui, "departments", $headpage); $this->registerAction("open","openEntry"); + + $this->registerAction("new_domain","newEntry"); + $this->registerAction("new_country","newEntry"); + $this->registerAction("new_locality","newEntry"); + $this->registerAction("new_dcObject","newEntry"); + $this->registerAction("new_organization","newEntry"); + $this->registerAction("new_department","newEntry"); + } + function newEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") + { + $types= $this->get_support_departments(); + $type = preg_replace("/^new_/","",$action); + return(management::newEntry($action,$target,$all,$this->tabClass,$types[$type]['TAB'],$this->aclCategory)); + } function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") { diff --git a/gosa-core/plugins/admin/departments/dep-list.xml b/gosa-core/plugins/admin/departments/dep-list.xml index 4bf9deffb..f25a431df 100644 --- a/gosa-core/plugins/admin/departments/dep-list.xml +++ b/gosa-core/plugins/admin/departments/dep-list.xml @@ -40,6 +40,14 @@ locality department locality + plugins/departments/images/locality.png + + + + + department + department + organization plugins/departments/images/organization.png @@ -90,10 +98,45 @@ - new + new_domain + entry + + plugins/departments/images/domain.png + + + + new_dcObject + entry + + plugins/departments/images/dc.png + + + + new_country + entry + + plugins/departments/images/country.png + + + + new_locality entry - plugins/users/images/list_new_user.png - + + plugins/departments/images/locality.png + + + + new_organization + entry + + plugins/departments/images/organization.png + + + + new_department + entry + + images/lists/folder.png -- 2.30.2