Tweak group controls
This commit is contained in:
parent
09832d5da3
commit
35f8c983ad
|
@ -1,23 +1,22 @@
|
||||||
<h1><%= @group.title %></h1>
|
<h1><%= @group.title %></h1>
|
||||||
|
|
||||||
|
<%= form_tag Routes.group_path(@conn, :delete, @group.id), method: :delete do %>
|
||||||
|
<%= submit "Delete Group", class: "btn btn-danger" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= form_for @create_feed_changeset, Routes.feed_path(@conn, :create), fn form -> %>
|
<%= form_for @create_feed_changeset, Routes.feed_path(@conn, :create), fn form -> %>
|
||||||
<%= hidden_input form, :group_id %>
|
<%= hidden_input form, :group_id %>
|
||||||
<div class="form-group row">
|
<div class="row">
|
||||||
<%= label form, :feed_url, "Feed URL", class: "col-sm-2 col-form-label" %>
|
<%= label form, :feed_url, "Feed URL", class: "col-sm-2 col-form-label" %>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-8">
|
||||||
<%= text_input form, :feed_url, placeholder: "https://example.com/feed.xml", class: "form-control" %>
|
<%= text_input form, :feed_url, placeholder: "https://example.com/feed.xml", class: "form-control" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-sm-2">
|
||||||
<div class="form-group row">
|
|
||||||
<div class="col-sm-10">
|
|
||||||
<%= submit "Add Feed", class: "btn btn-primary" %>
|
<%= submit "Add Feed", class: "btn btn-primary" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= form_tag Routes.group_path(@conn, :delete, @group.id), method: :delete do %>
|
|
||||||
<%= submit "Delete Group", class: "btn btn-danger" %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<h3 class="mt-4">Feeds</h3>
|
<h3 class="mt-4">Feeds</h3>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue