From: cajus Date: Wed, 19 Aug 2009 11:45:26 +0000 (+0000) Subject: Updated template, list and usermanagement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=76b00c046c6851fc44522af5a98127726ab53ed3;p=gosa.git Updated template, list and usermanagement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14087 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 06c42283e..1d128a6bb 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -33,6 +33,7 @@ class userManagement extends plugin var $templates = array(); var $got_uid = false; var $CopyPasteHandler = NULL; + var $SnapshotHandler = NULL; var $CPPasswordChange = ""; // Contains the entry id which should get a new password var $DivListUsers; @@ -58,6 +59,9 @@ class userManagement extends plugin if ($this->config->boolValueIsTrue("main", "copyPaste")){ $this->CopyPasteHandler= new CopyPasteHandler($this->config); } + if($this->config->get_cfg_value("enableSnapshots") == "true"){ + $this->SnapshotHandler= new SnapshotHandler($this->config); + } /* Creat dialog object */ $this->DivListUsers = new divListUsers($this->config,$this); @@ -1001,6 +1005,9 @@ class userManagement extends plugin # $this->headpage->registerElementFilter("accountProperties", "userManagement::filterProperties"); # $this->headpage->registerElementFilter("lockLabel", "userManagement::filterLockLabel"); # $this->headpage->registerElementFilter("lockImage", "userManagement::filterLockImage"); + # $this->headpage->setCopyPasteHandler($this->CopyPasteHandler); + # $this->SnapshotHandler->setSnapshotBases($this->get_used_snapshot_bases()); + # $this->headpage->setSnapshotHandler($this->SnapshotHandler); # $this->headpage->setFilter($this->filter); #} diff --git a/gosa-core/plugins/admin/users/user-list.tpl b/gosa-core/plugins/admin/users/user-list.tpl index bf5361e46..1aefb23a4 100644 --- a/gosa-core/plugins/admin/users/user-list.tpl +++ b/gosa-core/plugins/admin/users/user-list.tpl @@ -4,7 +4,7 @@
-

 {$HEADLINE}

+

 {$HEADLINE} {$SIZELIMIT}

diff --git a/gosa-core/plugins/admin/users/user-list.xml b/gosa-core/plugins/admin/users/user-list.xml index f8b4e874c..b80a1006d 100644 --- a/gosa-core/plugins/admin/users/user-list.xml +++ b/gosa-core/plugins/admin/users/user-list.xml @@ -15,19 +15,23 @@ gosaAccount !gosaUserTemplate + users + user plugins/users/images/select_user.png gosaUserTemplate + users + user plugins/users/images/select_template.png - |20px||145px|100px;r| + |20px||145px|165px;r| %{filter:objectType(dn,objectClass)} @@ -132,6 +136,10 @@ copypaste + + separator + + snapshot @@ -139,10 +147,6 @@ - - copypaste - - templatize entry @@ -151,6 +155,10 @@ + + copypaste + + edit entry