Edit <%= @pipeline.name %>

<%= for {stage, index} <- Enum.with_index(@pipeline.stages) do %>

<%= stage["module_name"] %>

<%#
<%= Jason.encode!(stage["options"], pretty: true) %1>
%> <%# <%= live_component(@socket, ) %1> %> <%= component_for(@socket, stage, index) %>
<% end %> <%= f = form_for :stage, "#", [class: "mt-4", phx_submit: :add_stage] %>
<%= select f, :module_name, @stages, class: "custom-select" %>
<%= submit "Add Stage", class: "btn btn-primary" %>