Index: openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml,v
diff -u -N -r1.33.2.6.4.16 -r1.33.2.6.4.17
--- openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml 15 Feb 2005 20:28:41 -0000 1.33.2.6.4.16
+++ openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml 25 Feb 2005 21:16:38 -0000 1.33.2.6.4.17
@@ -53,6 +53,7 @@
Archived %class_instances_pretty_plural% and %clubs_pretty_plural%
Archived %groups_pretty_plural%
Are you sure?
+ Are you sure you want to delete subject
Are you sure you want to send the following
Context?? the following what? Or is that the end of the phrase?
@@ -132,7 +133,7 @@
Delete
Delete empty %departments_pretty_name%.
Used as title of page for deleting empty department.
-
+ Delete empty %pretty_name%.
Department
Error: %departments_pretty_name% must be empty to be deleted
%departments_pretty_name% Name
@@ -263,6 +264,7 @@
Class Key (a short name, no spaces)
Community's Web Address
Current %clubs_pretty_plural%
+ Delete subject
Do you really want to remove the following members?
Do you really want to remove %num_users% users?
dotLRN properties for this user.
Index: openacs-4/packages/dotlrn/www/admin/class-delete.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-delete.adp,v
diff -u -N
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/admin/class-delete.adp 25 Feb 2005 21:16:38 -0000 1.1.2.1
@@ -0,0 +1,33 @@
+<%
+
+ #
+ # Copyright (C) 2001, 2002 MIT
+ #
+ # This file is part of dotLRN.
+ #
+ # dotLRN is free software; you can redistribute it and/or modify it under the
+ # terms of the GNU General Public License as published by the Free Software
+ # Foundation; either version 2 of the License, or (at your option) any later
+ # version.
+ #
+ # dotLRN is distributed in the hope that it will be useful, but WITHOUT ANY
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ # details.
+ #
+
+%>
+
+
+@context_bar@
+
+@title@
+
+#dotlrn.Are_you_sure_del_class# @pretty_name@?
+
+
+
+
+
+
+
Index: openacs-4/packages/dotlrn/www/admin/class-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-delete.tcl,v
diff -u -N
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/admin/class-delete.tcl 25 Feb 2005 21:16:38 -0000 1.1.2.1
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2001, 2002 MIT
+#
+# This file is part of dotLRN.
+#
+# dotLRN is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# dotLRN is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+
+ad_page_contract {
+} {
+ class_key:notnull
+}
+
+#Pages in this directory are only runnable by dotlrn-wide admins.
+dotlrn::require_admin
+
+# Get information about that class
+if {![db_0or1row select_class_info {}]} {
+ ad_returnredirect classes
+ ad_script_abort
+}
+
+ad_form -name delete_class -form {
+ {class_key:text(hidden)}
+} -on_request {
+ ad_set_form_values class_key
+} -on_submit {
+ #here's where we actually do the delete.
+ dotlrn_class::delete -class_key $class_key
+} -after_submit {
+ ad_returnredirect classes?[export_vars {department_key}]
+ ad_script_abort
+} -cancel_url classes?[export_vars {department_key}]
+
+
+set title "[_ dotlrn.Delete_Empty_Class]"
+set context_bar [list [list classes?[export_vars {department_key}] [parameter::get -localize -parameter classes_pretty_plural]] Delete]
Index: openacs-4/packages/dotlrn/www/admin/class-delete.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-delete.xql,v
diff -u -N
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/admin/class-delete.xql 25 Feb 2005 21:16:38 -0000 1.1.2.1
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+ select pretty_name,
+ description,
+ supertype,
+ department_key
+ from dotlrn_classes_full
+ where class_key = :class_key
+
+
+
+
\ No newline at end of file
Index: openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl,v
diff -u -N -r1.9.6.2 -r1.9.6.3
--- openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl 22 Nov 2004 22:23:08 -0000 1.9.6.2
+++ openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl 25 Feb 2005 21:17:19 -0000 1.9.6.3
@@ -123,6 +123,13 @@
\]
+
+
+ \[
+ [_ dotlrn.lt_Delete_class]
+ \]
+
+
}
}
}