<%= turbo_frame_tag workflow do %>
<%= turbo_frame_tag dom_id(workflow, :header) do %> <%= 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? #{ dependent_collections_sentence(workflow) }" }, form: { class: "flex-item-justify-end" } do %> <%= icon_tag "trash" %> Delete <%= workflow.name %> <% end %> <% end %>
<%= turbo_frame_tag dom_id(workflow, :stages) do %> <%= render partial: "workflows/stages/stage", collection: workflow.stages %> <%= turbo_frame_tag dom_id(workflow, :new_stage) do %> <%= link_to new_workflow_stage_path(workflow), class: "btn txt-small" do %> <%= icon_tag "add" %> New stage <% end %> <% end %> <% end %>
<% end %>