From: hickert Date: Tue, 22 Dec 2009 13:54:13 +0000 (+0000) Subject: Updated sudo management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a09f1309a687df67d091c7eea50f168f69a7fa14;p=gosa.git Updated sudo management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14924 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc index 2d98e4a00..22933a0ec 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc @@ -41,12 +41,12 @@ class sudoManagement extends management $this->storagePoints = array(get_ou("sudoRDN")); // Build filter -# if (session::global_is_set(get_class($this)."_filter")){ - # $filter= session::global_get(get_class($this)."_filter"); - # } else { + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { $filter = new filter(get_template_path("sudo-filter.xml", true)); $filter->setObjectStorage($this->storagePoints); - # } + } $this->setFilter($filter); // Build headpage @@ -60,8 +60,20 @@ class sudoManagement extends management if($this->config->get_cfg_value("enableSnapshots") == "true"){ $this->snapHandler = new SnapshotHandler($this->config); } + $this->registerAction("new_default", "newEntry"); parent::__construct($config, $ui, "sudo", $headpage); } + + function newEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") + { + management::newEntry($action,$target,$all,$altTabClass,$altTabType,$altAclCategory); + + /* This entry will become the default entry */ + if($action == "new_default"){ + $this->tabObject->set_default(TRUE); + } + + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/gosa-plugins/sudo/admin/sudo/remove.tpl b/gosa-plugins/sudo/admin/sudo/remove.tpl index 0af6a99ed..29adedf1b 100644 --- a/gosa-plugins/sudo/admin/sudo/remove.tpl +++ b/gosa-plugins/sudo/admin/sudo/remove.tpl @@ -3,15 +3,15 @@

{$info} + {t}Please double check if you really want to do this since there is no way for GOsa to get your data back.{/t}

- {t}If you're sure, press 'Delete' to continue or 'Cancel' to abort.{/t} + {t}So - if you're sure - press 'Delete' to continue or 'Cancel' to abort.{/t}

- +   - +

-