2022-02-01 14:38:44 +00:00
|
|
|
<% if not notice.nil? %><p style="color: green"><%= notice %></p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<h1><%= @machine.name %></h1>
|
2022-01-15 17:10:26 +00:00
|
|
|
|
2022-01-15 17:32:36 +00:00
|
|
|
<%= render "form", machine: @machine %>
|
2022-01-15 17:10:26 +00:00
|
|
|
|
|
|
|
<div>
|
2022-01-31 19:28:00 +00:00
|
|
|
<%= link_to "Delete #{@machine.name} ❌", @machine, data: {
|
|
|
|
turbo_method: :delete,
|
2022-02-01 14:38:44 +00:00
|
|
|
turbo_confirm: "Are you sure you want to remove #{@machine.name}?" } %>
|
2022-01-15 17:10:26 +00:00
|
|
|
</div>
|