From de5095a062661a2945d595f443fd41429aa631f4 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 20 Aug 2007 11:33:32 +0000 Subject: [PATCH] Added remove template and some checks to tasks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7075 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/gotomasses/class_goto_task.inc | 20 +++++++++++++++++++ plugins/addons/gotomasses/remove.tpl | 17 ++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 plugins/addons/gotomasses/remove.tpl diff --git a/plugins/addons/gotomasses/class_goto_task.inc b/plugins/addons/gotomasses/class_goto_task.inc index 246dd91e0..a9c81ba5e 100644 --- a/plugins/addons/gotomasses/class_goto_task.inc +++ b/plugins/addons/gotomasses/class_goto_task.inc @@ -164,6 +164,26 @@ class goto_task extends plugin return ($smarty->fetch (get_template_path('goto_task.tpl', TRUE))); } + + /* check given values */ + function check() + { + $message = plugin::check(); + $tmp = array( + "OGroup" => _("Object group") ,"Minute" => _("Minute"), + "Hour" => _("Hour") ,"Day" => _("Day"), + "Month" => _("Month") ,"Weekday"=> _("Week day"), + "Action" => _("Action") ,"Comment"=> _("Description"), + "Target" => _("Target objects")); + + foreach($tmp as $name => $desc){ + if(empty($this->$name)){ + $message[] = sprintf(_("The given value for attribute '%s' is invalid."),$desc); + } + } + return($message); + } + /* Map acl function, to be able to use plugin::save_object() */ function acl_is_writeable($str) diff --git a/plugins/addons/gotomasses/remove.tpl b/plugins/addons/gotomasses/remove.tpl new file mode 100644 index 000000000..e34108e5a --- /dev/null +++ b/plugins/addons/gotomasses/remove.tpl @@ -0,0 +1,17 @@ +
+  {t}Warning{/t} +
+

+ {$info} + {t}This includes all account data, system access rules, imap settings, etc. for this user. Please double check if your really want to do this since there is no way for GOsa to get your data back.{/t} +

+ +

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

+ +

+ + +

+ -- 2.30.2