Index: openacs-4/packages/acs-admin/www/auth/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/auth/index.tcl,v
diff -u -r1.11.2.1 -r1.11.2.2
--- openacs-4/packages/acs-admin/www/auth/index.tcl 10 Sep 2015 08:21:07 -0000 1.11.2.1
+++ openacs-4/packages/acs-admin/www/auth/index.tcl 1 Oct 2016 11:04:31 -0000 1.11.2.2
@@ -64,7 +64,7 @@
+ id="@authorities.select_id;literal@">
@@ -89,7 +89,7 @@
+ id="@authorities.delete_id;literal@">
@@ -98,6 +98,7 @@
}
}
+
# The authority currently selected for registering users
set register_authority_id [auth::get_register_authority]
@@ -108,6 +109,7 @@
delete_url
registration_url
registration_status
+ select_id delete_id
} authorities authorities_select {
select authority_id,
short_name,
@@ -127,18 +129,29 @@
set delete_url [export_vars -base authority-delete { authority_id }]
set sort_order_url_up [export_vars -base authority-set-sort-order { authority_id {direction up} }]
set sort_order_url_down [export_vars -base authority-set-sort-order { authority_id {direction down} }]
-
+ set select_id select-authority-$authority_id
+ set delete_id delete-authority-$authority_id
if {$authority_id eq $register_authority_id} {
# The authority is selected as register authority
set registration_status "selected"
} elseif { $reg_impl ne "" } {
# The authority can be selected as register authority
set registration_status "can_select"
set registration_url [export_vars -base authority-registration-select { authority_id }]
+ template::add_acs_confirm_handler \
+ -id $select_id \
+ -message [_ acs-admin.You_are_changing_all_user_registrations_to_be_in_authority_authorities_pretty_name \
+ [list authorities.pretty_name $pretty_name]]
} else {
# This authority has no account creation driver
set registration_status "cannot_select"
- }
+ }
+ if {$short_name ne "local"} {
+ template::add_acs_confirm_handler \
+ -id $delete_id \
+ -message [_ acs-admin.Are_you_sure_you_want_to_delete_authority_authorities_pretty_name \
+ [list authorities.pretty_name $pretty_name]]
+ }
}
set auth_package_id [apm_package_id_from_key "acs-authentication"]