Improve flow for adding stages
Previously the new stage form replaced the list, now it properly appends
This commit is contained in:
@@ -14,9 +14,11 @@
|
||||
<%= turbo_frame_tag dom_id(workflow, :stages) do %>
|
||||
<%= render partial: "workflows/stages/stage", collection: workflow.stages %>
|
||||
|
||||
<%= link_to new_workflow_stage_path(workflow), class: "btn txt-small" do %>
|
||||
<%= icon_tag "add" %>
|
||||
<span class="for-screen-reader">New stage</span>
|
||||
<%= 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>
|
||||
|
||||
Reference in New Issue
Block a user