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

35 lines
1.1 KiB
Elixir

<h1>Edit Feed</h1>
<%= form_for @changeset, Routes.feed_path(@conn, :update, @feed.id), fn f -> %>
<div class="row mb-2">
<label class="col-sm-2 col-form-label" for="feed_url">Feed URL</label>
<div class="col-sm-10">
<%= text_input f, :feed_url, class: "form-control" %>
</div>
</div>
<div class="row mb-2">
<label class="col-sm-2 col-form-label" for="refresh_frequency">Refresh Frequency</label>
<div class="col-sm-10">
<%= select f, :refresh_frequency, @refresh_frequencies, class: "form-select" %>
</div>
</div>
<div class="row mb-2">
<label class="col-sm-2 col-form-label" for="pipeline_id">Pipeline ID</label>
<div class="col-sm-10">
<%= select f, :pipeline_id, @pipelines, class: "form-select" %>
</div>
</div>
<%= if @feed.pipeline_id do %>
<div class="row mb-2">
<div class="col-sm-10">
<a href="<%= Routes.pipeline_path(@conn, :show, @feed.pipeline_id) %>" class="col-sm-2">View Pipeline</a>
</div>
</div>
<% end %>
<div class="row mb-2">
<div class="col-sm-10">
<%= submit "Update Feed", class: "btn btn-primary" %>
</div>
</div>
<% end %>