From ee3ae4995cc624854a590574a77fc9586bd05c45 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Oct 2009 10:39:14 +0000 Subject: [PATCH] Added copy & paste to management class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14632 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/users/class_userManagement.inc | 13 +++++++++---- gosa-core/plugins/admin/users/user-list.xml | 18 +++++++++++------- 2 files changed, 20 insertions(+), 11 deletions(-) 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] + + -- 2.30.2