frenzy/lib/frenzy_web/templates/group/show.html.eex

29 lines
752 B
Elixir
Raw Normal View History

2019-03-21 23:21:56 +00:00
<h2><%= @group.title %></h2>
<%= form_tag Routes.group_path(@conn, :delete, @group.id), method: :delete do %>
<%= submit "Delete Group" %>
<% end %>
<%= form_for @create_feed_changeset, Routes.feed_path(@conn, :create), fn form -> %>
<%= hidden_input form, :group_id %>
<div class="form-group">
<%= label form, :feed_url, "Feed URL" %>
<%= text_input form, :feed_url %>
</div>
<div class="form-group">
2019-03-21 23:43:13 +00:00
<%= submit "Add Feed" %>
2019-03-21 23:21:56 +00:00
</div>
<% end %>
<table>
<%= for feed <- @group.feeds do %>
<tr>
<td>
<a href="<%= Routes.feed_path(@conn, :show, feed.id) %>"><%= feed.feed_url %></a>
</td>
<td>
<a href="<%= feed.site_url %>"><%= feed.title %></a>
</td>
</tr>
<% end %>
</table>