Index: openacs-4/packages/curriculum-central/catalog/curriculum-central.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum-central/catalog/curriculum-central.en_US.ISO-8859-1.xml,v
diff -u -r1.48 -r1.49
--- openacs-4/packages/curriculum-central/catalog/curriculum-central.en_US.ISO-8859-1.xml 12 Apr 2006 02:06:17 -0000 1.48
+++ openacs-4/packages/curriculum-central/catalog/curriculum-central.en_US.ISO-8859-1.xml 12 Apr 2006 02:36:13 -0000 1.49
@@ -391,6 +391,8 @@
Are you sure you want to delete @staff.staff_name@? Note: This will not delete the users account.
Delete Teaching and Learning Method
Are you sure you want to delete the Teaching and Learning method?
+ Delete Graduate Attribute
+ Are you sure you want to delete the Graduate Attribtue?
Faculty Name
Dean
Add Faculty
Index: openacs-4/packages/curriculum-central/www/coordinate/gradattr-del-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum-central/www/coordinate/gradattr-del-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/curriculum-central/www/coordinate/gradattr-del-postgresql.xql 12 Apr 2006 02:36:14 -0000 1.1
@@ -0,0 +1,19 @@
+
+
+
+ postgresql7.4
+
+
+
+ SELECT cc_uos_gradattr__del(:gradattr_id)
+
+
+
+
+
+ UPDATE cc_uos_gradattr_map SET gradattr_id = NULL
+ WHERE gradattr_id = :gradattr_id
+
+
+
+
Index: openacs-4/packages/curriculum-central/www/coordinate/gradattr-del.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum-central/www/coordinate/gradattr-del.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/curriculum-central/www/coordinate/gradattr-del.tcl 12 Apr 2006 02:36:14 -0000 1.1
@@ -0,0 +1,28 @@
+ad_page_contract {
+ Delete a Graduate Attribtue.
+
+ @param method_id The ID of the GA that needs to be removed.
+ @param return_url Optional url to redirect to when the delete operation
+ is complete.
+
+ @author Nick Carroll (nick.c@rroll.net)
+ @creation-date 2005-12-04
+ @cvs-id $Id: gradattr-del.tcl,v 1.1 2006/04/12 02:36:14 ncarroll Exp $
+} {
+ gradattr_id:integer
+ return_url:optional
+}
+
+if { ![info exists return_url] } {
+ set return_url "gradattrs"
+}
+
+set package_id [ad_conn package_id]
+
+db_transaction {
+ db_dml gradattr_map_update {}
+ db_exec_plsql gradattr_delete {}
+}
+
+ad_returnredirect $return_url
+ad_script_abort
Index: openacs-4/packages/curriculum-central/www/coordinate/gradattrs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum-central/www/coordinate/gradattrs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/curriculum-central/www/coordinate/gradattrs.tcl 6 Jan 2006 05:46:13 -0000 1.2
+++ openacs-4/packages/curriculum-central/www/coordinate/gradattrs.tcl 12 Apr 2006 02:36:14 -0000 1.3
@@ -55,6 +55,14 @@
}
label "#curriculum-central.level#"
}
+ delete {
+ sub_class narrow
+ display_template {
+
+ }
+ link_url_eval {[export_vars -base gradattr-del { gradattr_id }]}
+ link_html {title "#curriculum-central.delete_gradattr#" onclick "return confirm(\'[_ curriculum-central.want_to_delete_gradattr]\');"}
+ }
}
template::list::create \
Index: openacs-4/packages/curriculum-central/www/coordinate/tl-method-del.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum-central/www/coordinate/tl-method-del.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/curriculum-central/www/coordinate/tl-method-del.tcl 12 Apr 2006 02:06:18 -0000 1.1
+++ openacs-4/packages/curriculum-central/www/coordinate/tl-method-del.tcl 12 Apr 2006 02:36:14 -0000 1.2
@@ -1,9 +1,7 @@
ad_page_contract {
- Deletes a user from the staff group and redirects back to listing of
- staff. Able to specify a return_url if the default is not suitable.
+ Deletes a Teaching and Learning method.
- @param staff_id The ID of the user that needs to be removed from the
- staff list.
+ @param method_id The ID of the Teaching and Learning method to remove.
@param return_url Optional url to redirect to when the delete operation
is complete.