<%= @group.title %>

<%= form_for @create_feed_changeset, Routes.feed_path(@conn, :create), fn form -> %> <%= hidden_input form, :group_id %>
<%= label form, :feed_url, "Feed URL", class: "col-sm-2 col-form-label" %>
<%= text_input form, :feed_url, placeholder: "https://example.com/feed.xml", class: "form-control" %>
<%= submit "Add Feed", class: "btn btn-primary" %>
<% end %> <%= form_tag Routes.group_path(@conn, :delete, @group.id), method: :delete do %> <%= submit "Delete Group", class: "btn btn-danger" %> <% end %>

Feeds

<%= for feed <- @group.feeds do %> <% end %>
<%= feed.feed_url %> <%= feed.title %>