Move delete to a more obvious place

This commit is contained in:
Jason Zimdars
2025-09-04 16:06:40 -05:00
parent d46c3d4163
commit 8726bb5fe5
2 changed files with 7 additions and 5 deletions
+7
View File
@@ -5,6 +5,13 @@
<%= link_to edit_workflow_path(workflow) do %>
<h3 class="txt-large txt-nowrap margin-none overflow-ellipsis"><%= workflow.name %></h3>
<% end %>
<%= button_to workflow_path(workflow), method: :delete, class: "btn txt-small borderless txt-subtle",
data: { turbo_frame: "_top", turbo_confirm: "Are you sure you want to delete this workflow?" },
form: { class: "flex-item-justify-end" } do %>
<%= icon_tag "trash" %>
<span class="for-screen-reader">Delete <%= workflow.name %></span>
<% end %>
<% end %>
</div>
-5
View File
@@ -16,10 +16,5 @@
<%= icon_tag "remove-med" %>
<span class="for-screen-reader">Cancel</span>
<% end %>
<%= button_to workflow_path(@workflow), method: :delete, class: "btn txt-small btn--negative", data: { turbo_frame: "_top", turbo_confirm: "Are you sure you want to delete this workflow?" } do %>
<%= icon_tag "minus" %>
<span class="for-screen-reader">Delete <%= @workflow.name %></span>
<% end %>
</div>
<% end %>