frenzy/lib/frenzy_web/templates/feed/edit.html.eex

30 lines
831 B
Elixir

<h2>Feed Pipeline</h2>
<table class="table table-striped mt-4">
<thead>
<tr>
<th>Module</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for stage <- @stages do %>
<tr>
<td>
<code><%= stage.module_name %></code>
</td>
<td>
<a href="<%= Routes.pipeline_path(@conn, :edit, @feed.id, stage.id) %>" class="btn btn-primary btn-sm">
Edit
</a>
<%= form_for @conn, Routes.pipeline_path(@conn, :delete, @feed.id, stage.id), [method: :delete, style: "display: inline-block;"], fn f -> %>
<%= submit "Delete", class: "btn btn-danger btn-sm" %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<a href="<%= Routes.pipeline_path(@conn, :new, @feed.id) %>" class="btn btn-primary">Add Stage</a>