diff options
Diffstat (limited to 'app/views/machines/show.html.erb')
-rw-r--r-- | app/views/machines/show.html.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/machines/show.html.erb b/app/views/machines/show.html.erb index 19e5f19..4bba20c 100644 --- a/app/views/machines/show.html.erb +++ b/app/views/machines/show.html.erb @@ -1,7 +1,9 @@ -<p style="color: green"><%= notice %></p> +<% if not notice.nil? %><p style="color: green"><%= notice %></p><% end %> <%= render "form", machine: @machine %> <div> - <%= button_to "Delete #{@machine.name}", @machine, method: :delete %> + <%= link_to "Delete #{@machine.name} ❌", @machine, data: { + turbo_method: :delete, + turbo_confirm: "Are you sure you want to remove #{@machine.name}?"} %> </div> |