Delete buckets

This commit is contained in:
Jason Zimdars
2024-10-03 13:39:16 -05:00
parent bd17881d4f
commit 76e0c3af8f
+7
View File
@@ -6,6 +6,13 @@
<%= image_tag "arrow-left.svg", aria: { hidden: true }, size: 24 %>
<span class="for-screen-reader">Go back</span>
<% end %>
<%= form_with model: @bucket, class: "flex align-center gap-half", method: :delete do |form| %>
<%= form.button class: "btn btn--negative txt-small min-width", data: { turbo_confirm: "Are you sure you want to delete this?" } do %>
<%= image_tag "minus.svg", aria: { hidden: true }, size: 24 %>
<span class="for-screen-reader">Delete <%= @bucket.name %></span>
<% end %>
<% end %>
</nav>
<% end %>