From: hickert Date: Mon, 26 Oct 2009 10:39:14 +0000 (+0000) Subject: Added copy & paste to management class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee3ae4995cc624854a590574a77fc9586bd05c45;p=gosa.git Added copy & paste to management class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14632 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 511ac7aa8..f380690f7 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -42,16 +42,21 @@ class userManagement extends management // Build headpage $headpage = new listing(get_template_path("user-list.xml", true)); $headpage->setFilter($filter); + $this->cpHandler = new CopyPasteHandler($this->config); parent::__construct($config, $ui, "users", $headpage); - $this->registerAction("new", "newEntry"); - $this->registerAction("edit", "editEntry"); - $this->registerAction("apply", "applyChanges"); - $this->registerAction("save", "saveChanges"); + $this->registerAction("new", "newEntry"); + $this->registerAction("edit", "editEntry"); + $this->registerAction("apply", "applyChanges"); + $this->registerAction("save", "saveChanges"); $this->registerAction("cancel", "cancelEdit"); $this->registerAction("remove", "removeEntryRequested"); $this->registerAction("removeConfirmed", "removeEntryConfirmed"); + + $this->registerAction("copy", "copyPasteHandler"); + $this->registerAction("cut", "copyPasteHandler"); + $this->registerAction("paste", "copyPasteHandler"); } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/gosa-core/plugins/admin/users/user-list.xml b/gosa-core/plugins/admin/users/user-list.xml index 14555d0ee..5111f87bb 100644 --- a/gosa-core/plugins/admin/users/user-list.xml +++ b/gosa-core/plugins/admin/users/user-list.xml @@ -91,19 +91,17 @@ separator + + cp + copypaste + + exporter - - provision - entry - gosaAccount - images/lists/reload.png - - edit @@ -122,6 +120,12 @@ + + cp + copypaste + users/user[w] + +