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

26 lines
877 B
Elixir

<h2>Feed</h2>
<%= form_tag Routes.filter_path(@conn, :edit, @changeset.data.filter.id), method: :get, class: "d-inline" do %>
<%= submit "Edit Filter", class: "btn btn-secondary" %>
<% end %>
<%= form_for @changeset, Routes.feed_path(@conn, :update, @changeset.data.id), fn form -> %>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="filter_enabled">Filter Enabled</label>
<div class="col-sm-9">
<%= checkbox form, :filter_enabled %>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="scrape_remote_content">Scrape Remote Content</label>
<div class="col-sm-9">
<%= checkbox form, :scrape_remote_content %>
</div>
</div>
<div class="form-group row">
<div class="col-sm-10">
<%= submit "Update Feed", class: "btn btn-primary" %>
</div>
</div>
<% end %>