From 9fac3aeb6fd15eb619f1895c9f54248b57fb022e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Sep 2010 13:37:15 +0000 Subject: [PATCH] Updated device-item handling -The xml filter files was messed up, we could use the action edit.. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/Config/DeviceConfig-list.xml | 3 ++- .../systems/goto/Config/class_DeviceConfig.inc | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml b/gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml index 9cd8299e8..0e6bbe3ac 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml +++ b/gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml @@ -73,6 +73,7 @@ Device + remove @@ -86,7 +87,7 @@ - edit + editEntry entry images/lists/edit.png diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc index b885f495d..fda9825ea 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc @@ -99,6 +99,12 @@ class DeviceConfig extends management function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") + { + echo "Jajajaaa"; + } + + + function openEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") { $this->setCurrentItem($target[0]); } @@ -178,6 +184,17 @@ class DeviceConfig extends management $headpage->setFilter($filter); parent::__construct($this->config, $this->ui, "services", $headpage); + + // Register default actions + $this->registerAction("new", "newEntry"); + $this->registerAction("edit", "openEntry"); // !! We forward 'edit' to 'open' to have a department like navigation. + $this->registerAction("editEntry", "editEntry"); + $this->registerAction("apply", "applyChanges"); + $this->registerAction("save", "saveChanges"); + $this->registerAction("cancel", "cancelEdit"); + $this->registerAction("cancelDelete", "cancelEdit"); + $this->registerAction("remove", "removeEntryRequested"); + $this->registerAction("removeConfirmed", "removeEntryConfirmed"); } -- 2.30.2