From 3abe781b33562c965dce08311c37951575b353fd Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 10 Jan 2012 18:36:35 -0200 Subject: [PATCH] Adding a question before product removal on manage product interface --- app/views/manage_products/index.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/manage_products/index.rhtml b/app/views/manage_products/index.rhtml index c75f7e8..df5bec0 100644 --- a/app/views/manage_products/index.rhtml +++ b/app/views/manage_products/index.rhtml @@ -16,7 +16,7 @@ <%= link_to product.name, :action => 'show', :id => product %> <%= product.price %> - <%= button :delete, _('Delete'), :action => 'destroy', :id => product %> + <%= button :delete, _('Remove'), {:action => 'destroy', :id => product}, :confirm => _('Are you sure you want to remove this product?') %> <% end %> -- libgit2 0.21.2