From: hickert Date: Mon, 20 Aug 2007 11:33:32 +0000 (+0000) Subject: Added remove template and some checks to tasks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de5095a062661a2945d595f443fd41429aa631f4;p=gosa.git Added remove template and some checks to tasks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7075 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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} +

+ +

+ + +

+