aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-08-22 09:59:20 +0100
committerLouise Crow <louise.crow@gmail.com>2013-08-22 10:01:22 +0100
commit31159c994256d50d5e7194125e15d69aa9c2f0ce (patch)
tree6ba1a85aa449545349c3b72762fda0685551c031
parent71f0e5cff9d87ae111fed6e4cc89b886efa67e6b (diff)
Add confirmation to outgoing messsage destroy.
Closes #1053.
-rw-r--r--app/views/admin_request/edit_outgoing.html.erb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/admin_request/edit_outgoing.html.erb b/app/views/admin_request/edit_outgoing.html.erb
index a0c60520a..9fe8a4497 100644
--- a/app/views/admin_request/edit_outgoing.html.erb
+++ b/app/views/admin_request/edit_outgoing.html.erb
@@ -25,8 +25,7 @@
<%= form_tag admin_request_destroy_outgoing_path do %>
<div>
<%= hidden_field_tag 'outgoing_message_id', @outgoing_message.id %>
- Warning, this is permanent! ---&gt;
- <%= submit_tag "Destroy outgoing message" %>
+ <%= submit_tag "Destroy outgoing message", :class => "btn btn-danger", :confirm => "This is permanent! Are you sure?" %>
</div>
<% end %>