diff --git a/app/views/buckets/edit.html.erb b/app/views/buckets/edit.html.erb index 41bcb0c20..5105b5dab 100644 --- a/app/views/buckets/edit.html.erb +++ b/app/views/buckets/edit.html.erb @@ -6,6 +6,13 @@ <%= image_tag "arrow-left.svg", aria: { hidden: true }, size: 24 %> Go back <% 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 %> + Delete <%= @bucket.name %> + <% end %> + <% end %> <% end %>