From 76e0c3af8f54b9bb1d26e97ecd6dc2f68644fc7d Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 3 Oct 2024 13:39:16 -0500 Subject: [PATCH] Delete buckets --- app/views/buckets/edit.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) 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 %>