summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ccd1be)
raw | patch | inline | side by side (parent: 8ccd1be)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Dec 2009 13:54:13 +0000 (13:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Dec 2009 13:54:13 +0000 (13:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14924 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc | patch | blob | history | |
gosa-plugins/sudo/admin/sudo/remove.tpl | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc
index 2d98e4a00bb0a593e62b7f22d38c82124431c84e..22933a0ec9feb37ddf2a095c236b84f9498c57c7 100644 (file)
$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
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:
?>
index 0af6a99ed7eb252eb1b12b9fe636bd2901463f86..29adedf1b6b018f89299e906b111e32f6518ab03 100644 (file)
</div>
<p>
{$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}
</p>
<p>
- {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}
</p>
<p class="plugbottom">
- <input type=submit name="delete_sudos_confirmed" value="{msgPool type=delButton}">
+ <input type=submit name="delete_confirmed" value="{msgPool type=delButton}">
- <input type=submit name="delete_sudo_cancel" value="{msgPool type=cancelButton}">
+ <input type=submit name="delete_cancel" value="{msgPool type=cancelButton}">
</p>
-