From 930bba5f388a5a0dc8625625b36f7f2b2753c690 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Oct 2009 11:19:22 +0000 Subject: [PATCH] Allow to edit templates. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14635 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/users/class_userManagement.inc | 8 +++++ gosa-core/plugins/admin/users/user-list.xml | 30 +++++++++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index f380690f7..318919df7 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -57,6 +57,14 @@ class userManagement extends management $this->registerAction("copy", "copyPasteHandler"); $this->registerAction("cut", "copyPasteHandler"); $this->registerAction("paste", "copyPasteHandler"); + + $this->registerAction("new_template", "newTemplate"); + } + + function newTemplate($action,$entry) + { + $this->newEntry(); + $this->tabObject->set_template_mode (); } } // 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 5111f87bb..c7d5423a6 100644 --- a/gosa-core/plugins/admin/users/user-list.xml +++ b/gosa-core/plugins/admin/users/user-list.xml @@ -12,8 +12,16 @@ 1 - - person + + gosaUserTemplate + users + user + plugins/users/images/select_template.png + + + + + gosaAccount users user plugins/users/images/select_user.png @@ -69,6 +77,13 @@ + + new_template + entry + plugins/users/images/select_template.png + + + separator @@ -96,6 +111,17 @@ copypaste + + separator + + + + templatize + entry + plugins/users/images/wizard.png + + + exporter -- 2.30.2