Code

Updated device-item handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Sep 2010 13:37:15 +0000 (13:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Sep 2010 13:37:15 +0000 (13:37 +0000)
-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

gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc

index 9cd8299e895724ce62ee8efd1e8381a3b8adcb42..0e6bbe3acf8681bd7ee4e96f1b4b40fda98b1171 100644 (file)
@@ -73,6 +73,7 @@
       <label>Device</label>
       <depends>Device</depends>
      </action>
+    </action>
 
     <action>
       <name>remove</name>
@@ -86,7 +87,7 @@
   <actiontriggers snapshot="false" copypaste="false">
 
     <action>
-      <name>edit</name>
+      <name>editEntry</name>
       <type>entry</type>
       <image>images/lists/edit.png</image>
       <label>Edit role</label>
index b885f495dd075441618a3874925cf9c6da904b50..fda9825eaee2aadb99f038673a5d522df86df57b 100644 (file)
@@ -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");
     }