aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/admin_public_body_categories/edit.html.erb3
-rw-r--r--app/views/admin_public_body_headings/edit.html.erb3
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/admin_public_body_categories/edit.html.erb b/app/views/admin_public_body_categories/edit.html.erb
index fc2b1591c..f83d0768d 100644
--- a/app/views/admin_public_body_categories/edit.html.erb
+++ b/app/views/admin_public_body_categories/edit.html.erb
@@ -23,7 +23,8 @@
<%= form_for @category, :url => admin_category_path(@category), :method => 'delete', :class => "form form-inline" do |f| %>
<%= f.submit "Destroy #{ @category.title }",
:title => @category.title,
- :class => "btn btn-danger" %>
+ :class => "btn btn-danger",
+ :confirm => 'Are you sure?' %>
<span class="help-block">
Destroying a category does not destroy the public authorities
associated with the category.
diff --git a/app/views/admin_public_body_headings/edit.html.erb b/app/views/admin_public_body_headings/edit.html.erb
index 66b95cabe..d4bc02562 100644
--- a/app/views/admin_public_body_headings/edit.html.erb
+++ b/app/views/admin_public_body_headings/edit.html.erb
@@ -23,7 +23,8 @@
<%= form_for @heading, :url => admin_heading_path(@heading), :method => 'delete', :class => "form form-inline" do |f| %>
<%= f.submit "Destroy #{ @heading.name }",
:name => @heading.name,
- :class => "btn btn-danger" %>
+ :class => "btn btn-danger",
+ :confirm => 'Are you sure?' %>
<span class="help-block">
<ul>
<li>Destroying a category heading only destroys the heading itself.</li>