Skip to content
Snippets Groups Projects
Commit 8b3b5bf4 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add link to remove collection

parent 50550450
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
<div class="container-fluid">
<div class="navbar-right" style="text-align:right">
<%= link_to '#' do %>
<span style="margin-right: 30px;"><button class="btn btn-danger btn-remove">APAGAR</button></span>
<%= link_to 'APAGAR', collection_path(@collection.id), method: :delete, class: 'btn btn-danger btn-remove', style:'margin-right: 30px', data: { confirm: 'Não será possível recuperá-la, você tem certeza?' } %></span>
<% end %>
<div class="collection-privacy">
<input type="radio" name="privacy" id="privacy_private" data-cid="<%= @collection.id %>" value="private" <%= "checked" if @collection.privacy == "private" %>><label for="privacy_private">Privada</label> |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment