Changed the "Delete" links into buttons with confirmation

closes #31
This commit is contained in:
2012-04-30 11:26:01 -04:00
parent 7a0f6e5f27
commit 1c60004c4a

View File

@@ -3,7 +3,8 @@
<br/> <br/>
<strong>Current Maps:</strong> <strong>Current Maps:</strong>
<% Map.all.each do |map| %> <% Map.all.each do |map| %>
<br/> <br/>
<%= map[:package] %> <%= map[:build] %> <%= link_to "Delete", "maps/delete/#{map[:map]}" %> <div>
<%= map[:package] %> <%= map[:build] %> <%= button_to "Delete", "delete/#{map[:map]}", :confirm => "Are you sure?" %>
</div>
<% end %> <% end %>