summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d957b1c)
raw | patch | inline | side by side (parent: d957b1c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Aug 2007 11:33:32 +0000 (11:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Aug 2007 11:33:32 +0000 (11:33 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7075 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_goto_task.inc | patch | blob | history | |
plugins/addons/gotomasses/remove.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/addons/gotomasses/class_goto_task.inc b/plugins/addons/gotomasses/class_goto_task.inc
index 246dd91e0f74973d5e9754d1704a32af96320c43..a9c81ba5e43cc3859fa0246422b8f0b9fcb60adb 100644 (file)
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
--- /dev/null
@@ -0,0 +1,17 @@
+<div style="font-size:18px;">
+ <img alt="" src="images/button_cancel.png" align=top> {t}Warning{/t}
+</div>
+<p>
+ {$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}
+</p>
+
+<p>
+ {t}So - if you're sure - press 'Delete' to continue or 'Cancel' to abort.{/t}
+</p>
+
+<p class="plugbottom">
+ <input type=submit name="delete_confirm" value="{t}Delete{/t}">
+ <input type=submit name="delete_cancel" value="{t}Cancel{/t}">
+</p>
+