diff --git a/app/views/workflows/_workflow.html.erb b/app/views/workflows/_workflow.html.erb index a5362a032..f63d9fe0f 100644 --- a/app/views/workflows/_workflow.html.erb +++ b/app/views/workflows/_workflow.html.erb @@ -5,6 +5,13 @@ <%= link_to edit_workflow_path(workflow) do %>

<%= workflow.name %>

<% 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" %> + Delete <%= workflow.name %> + <% end %> <% end %> diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erb index 7ee4555e6..75e9c55b9 100644 --- a/app/views/workflows/edit.html.erb +++ b/app/views/workflows/edit.html.erb @@ -16,10 +16,5 @@ <%= icon_tag "remove-med" %> Cancel <% 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" %> - Delete <%= @workflow.name %> - <% end %> <% end %>