34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
<%= turbo_frame_tag workflow do %>
|
|
<article class="panel" style="--panel-size: 40ch;" style="view-transition-name: <%= dom_id(workflow) %>">
|
|
<div class="flex gap-half align-center">
|
|
<%= turbo_frame_tag dom_id(workflow, :header) do %>
|
|
<%= 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? #{ dependent_collections_sentence(workflow) }" },
|
|
form: { class: "flex-item-justify-end" } do %>
|
|
<%= icon_tag "trash" %>
|
|
<span class="for-screen-reader">Delete <%= workflow.name %></span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<hr class="separator--horizontal flex-item-grow" style="--border-color: var(--color-ink-medium);" aria-hidden="true">
|
|
|
|
<div class="flex flex-column gap-half margin-block-start">
|
|
<%= 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" %>
|
|
<span class="for-screen-reader">New stage</span>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</article>
|
|
<% end %>
|